protected static enum Numbers.NumberType extends java.lang.Enum<Numbers.NumberType>
| Enum Constant and Description |
|---|
BIG_DECIMAL |
BIG_INTEGER |
BIG_RATIONAL |
INTEGER |
LONG |
| Modifier and Type | Method and Description |
|---|---|
protected static Numbers.NumberType |
getMaxNumberType(Numbers.NumberType typeN1,
Numbers.NumberType typeN2) |
protected static Numbers.NumberType |
getNumberTypeFor(java.lang.Number n) |
static Numbers.NumberType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Numbers.NumberType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Numbers.NumberType INTEGER
public static final Numbers.NumberType LONG
public static final Numbers.NumberType BIG_INTEGER
public static final Numbers.NumberType BIG_DECIMAL
public static final Numbers.NumberType BIG_RATIONAL
public static Numbers.NumberType[] values()
for (Numbers.NumberType c : Numbers.NumberType.values()) System.out.println(c);
public static Numbers.NumberType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullprotected static Numbers.NumberType getMaxNumberType(Numbers.NumberType typeN1, Numbers.NumberType typeN2)
protected static Numbers.NumberType getNumberTypeFor(java.lang.Number n)