org.apache.wicket.util.lang
Class Numbers

java.lang.Object
  extended by org.apache.wicket.util.lang.Numbers

public final class Numbers
extends Object

Since:
1.5.8

Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMinValue

public static Number getMinValue(Class<? extends 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 Number getMaxValue(Class<? extends 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 if the numberType itself is either null or has no maximum value


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.