public final class Numbers extends Object
Modifier and Type | Method and Description |
---|---|
static Number |
getMaxValue(Class<? extends Number> numberType)
Returns the maximum value for the numberType's type
|
static Number |
getMinValue(Class<? extends Number> numberType)
Returns the minimum value for the numberType's type
|
public static Number getMinValue(Class<? extends Number> numberType)
numberType
- the type of the number for which the minimum value will be returnednull
or has no minimum valuepublic static Number getMaxValue(Class<? extends Number> numberType)
numberType
- the type of the number for which the maximum value will be returnednull
or has no maximum valueCopyright © 2006–2022 Apache Software Foundation. All rights reserved.