Class NumberUtils


  • public final class NumberUtils
    extends Object
    Useful methods for working with Number objects.
    Author:
    Curtis Rueden, Barry DeZonia
    • Method Detail

      • toNumber

        public static Number toNumber​(Object value,
                                      Class<?> type)
        Converts the given object to a Number of the specified type, or null if the types are incompatible.
      • getMinimumNumber

        public static Number getMinimumNumber​(Class<?> type)
      • getMaximumNumber

        public static Number getMaximumNumber​(Class<?> type)