|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.lang3.math.NumberUtils
net.dontdrinkandroot.utils.lang.math.NumberUtils
public class NumberUtils
Provides extra functionality for Java Number classes.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.lang3.math.NumberUtils |
|---|
BYTE_MINUS_ONE, BYTE_ONE, BYTE_ZERO, DOUBLE_MINUS_ONE, DOUBLE_ONE, DOUBLE_ZERO, FLOAT_MINUS_ONE, FLOAT_ONE, FLOAT_ZERO, INTEGER_MINUS_ONE, INTEGER_ONE, INTEGER_ZERO, LONG_MINUS_ONE, LONG_ONE, LONG_ZERO, SHORT_MINUS_ONE, SHORT_ONE, SHORT_ZERO |
| Constructor Summary | |
|---|---|
protected |
NumberUtils()
Disabled constructor, utility class. |
| Method Summary | |
|---|---|
static byte |
byteValue(java.lang.Number number)
Get the null safe byteValue of a Number. |
static int |
compare(int lhs,
int rhs)
|
static double |
doubleValue(java.lang.Number number)
Get the null safe doubleValue of a Number. |
static float |
floatValue(java.lang.Number number)
Get the null safe floatValue of a Number. |
static int |
intValue(java.lang.Number number)
Get the null safe intValue of a Number. |
static double |
limit(double value,
double min,
double max)
|
static float |
limit(float value,
float min,
float max)
|
static int |
limit(int value,
int min,
int max)
|
static long |
limit(long value,
long min,
long max)
|
static long |
longValue(java.lang.Number number)
Get the null safe longValue of a Number. |
static short |
shortValue(java.lang.Number number)
Get the null safe shortValue of a Number. |
| Methods inherited from class org.apache.commons.lang3.math.NumberUtils |
|---|
createBigDecimal, createBigInteger, createDouble, createFloat, createInteger, createLong, createNumber, isDigits, isNumber, max, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, min, toByte, toByte, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toLong, toLong, toShort, toShort |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected NumberUtils()
| Method Detail |
|---|
public static int intValue(java.lang.Number number)
number - The Number to convert.
public static double doubleValue(java.lang.Number number)
number - The Number to convert.
public static byte byteValue(java.lang.Number number)
number - The Number to convert.
public static long longValue(java.lang.Number number)
number - The Number to convert.
public static short shortValue(java.lang.Number number)
number - The Number to convert.
public static float floatValue(java.lang.Number number)
number - The Number to convert.
public static int limit(int value,
int min,
int max)
public static long limit(long value,
long min,
long max)
public static float limit(float value,
float min,
float max)
public static double limit(double value,
double min,
double max)
public static int compare(int lhs,
int rhs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||