Package org.apache.wicket.util.lang
Class Numbers
java.lang.Object
org.apache.wicket.util.lang.Numbers
- Since:
- 1.5.8
-
Method Summary
Modifier and TypeMethodDescriptionstatic Number
getMaxValue
(Class<? extends Number> numberType) Returns the maximum value for the numberType's typestatic Number
getMinValue
(Class<? extends Number> numberType) Returns the minimum value for the numberType's type
-
Method Details
-
getMinValue
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
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
-