|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<JNumber.Type>
org.jnetpcap.nio.JNumber.Type
public static enum JNumber.Type
Used to request a specific type of primitive that this number will be dealing with possibly allocating memory more efficiently to fit the primitive type.
| Enum Constant Summary | |
|---|---|
BYTE
8-bit integer. |
|
CHAR
16-bit UTF character. |
|
DOUBLE
A long floating point value. |
|
FLOAT
A floating point value. |
|
INT
32-bit integer. |
|
LONG
64-bit integer. |
|
SHORT
16-bit integer. |
|
| Field Summary | |
|---|---|
int |
size
Size in bytes for this native type on this machine. |
| Method Summary | |
|---|---|
static int |
getBiggestSize()
Returns the size of the biggets primitive. |
static JNumber.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JNumber.Type[] |
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, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final JNumber.Type BYTE
public static final JNumber.Type CHAR
public static final JNumber.Type INT
public static final JNumber.Type SHORT
public static final JNumber.Type LONG
public static final JNumber.Type FLOAT
public static final JNumber.Type DOUBLE
| Field Detail |
|---|
public final int size
| Method Detail |
|---|
public static JNumber.Type[] values()
for (JNumber.Type c : JNumber.Type.values()) System.out.println(c);
public static JNumber.Type 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 name
java.lang.NullPointerException - if the argument is nullpublic static int getBiggestSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||