Class Numbers


  • public final class Numbers
    extends java.lang.Object
    Since:
    1.5.8
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Number getMaxValue​(java.lang.Class<? extends java.lang.Number> numberType)
      Returns the maximum value for the numberType's type
      static java.lang.Number getMinValue​(java.lang.Class<? extends java.lang.Number> numberType)
      Returns the minimum value for the numberType's type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMinValue

        public static java.lang.Number getMinValue​(java.lang.Class<? extends java.lang.Number> numberType)
        Returns the minimum value for the numberType's type
        Parameters:
        numberType - the type of the number for which the minimum value will be returned
        Returns:
        the minimum value of the numberType or Double if the numberType itself is either null or has no minimum value
      • getMaxValue

        public static java.lang.Number getMaxValue​(java.lang.Class<? extends java.lang.Number> numberType)
        Returns the maximum value for the numberType's type
        Parameters:
        numberType - the type of the number for which the maximum value will be returned
        Returns:
        the maximum value of the numberType or 1.7976931348623157E308 if the numberType itself is either null or has no maximum value