|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<NumberOperations.ClassInfo>
org.jaitools.numeric.NumberOperations.ClassInfo
public static enum NumberOperations.ClassInfo
Information about the Number classes supported including
their rank in terms of numeric precision.
| Enum Constant Summary | |
|---|---|
BYTE
Byte: rank 0, integral type |
|
DOUBLE
Double: rank 5, non-integral type |
|
FLOAT
Float: rank 4, non-integral type |
|
INTEGER
Integer: rank 2, integral type |
|
LONG
Long: rank 3, integral type |
|
SHORT
Short: rank 1, integral type |
|
| Method Summary | |
|---|---|
static NumberOperations.ClassInfo |
get(Class<? extends Number> clazz)
Gets the ClassInfo type for the given class |
Class<? extends Number> |
getNumberClass()
Gets the class that this type relates to |
int |
getRank()
Gets the relative rank of this type in terms of numeric precision. |
boolean |
isIntegral()
Tests if this is an integral type |
String |
toString()
Gets a String representation of this type |
static NumberOperations.ClassInfo |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static NumberOperations.ClassInfo[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final NumberOperations.ClassInfo BYTE
public static final NumberOperations.ClassInfo SHORT
public static final NumberOperations.ClassInfo INTEGER
public static final NumberOperations.ClassInfo LONG
public static final NumberOperations.ClassInfo FLOAT
public static final NumberOperations.ClassInfo DOUBLE
| Method Detail |
|---|
public static NumberOperations.ClassInfo[] values()
for (NumberOperations.ClassInfo c : NumberOperations.ClassInfo.values()) System.out.println(c);
public static NumberOperations.ClassInfo valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getRank()
public Class<? extends Number> getNumberClass()
public boolean isIntegral()
public String toString()
toString in class Enum<NumberOperations.ClassInfo>ClassInfo<classname>"public static NumberOperations.ClassInfo get(Class<? extends Number> clazz)
clazz - a Number class
null if the class is not
recognized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||