public enum PrimitiveType extends Enum<PrimitiveType>
| Enum Constant and Description |
|---|
CHAR |
DOUBLE |
FLOAT |
INT16 |
INT32 |
INT64 |
INT8 |
UINT16 |
UINT32 |
UINT64 |
UINT8 |
| Modifier and Type | Method and Description |
|---|---|
static PrimitiveType |
get(String name)
Lookup PrimitiveType by String name and return Enum.
|
PrimitiveValue |
maxValue()
The maxValue of the primitive type.
|
PrimitiveValue |
minValue()
The minValue of the primitive type.
|
PrimitiveValue |
nullValue()
The nullValue of the primitive type.
|
String |
primitiveName()
The name of the primitive type as a String.
|
int |
size()
The size of the primitive type in octets.
|
static PrimitiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrimitiveType CHAR
public static final PrimitiveType INT8
public static final PrimitiveType INT16
public static final PrimitiveType INT32
public static final PrimitiveType INT64
public static final PrimitiveType UINT8
public static final PrimitiveType UINT16
public static final PrimitiveType UINT32
public static final PrimitiveType UINT64
public static final PrimitiveType FLOAT
public static final PrimitiveType DOUBLE
public static PrimitiveType[] values()
for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
public static PrimitiveType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String primitiveName()
public int size()
public PrimitiveValue minValue()
public PrimitiveValue maxValue()
public PrimitiveValue nullValue()
public static PrimitiveType get(String name)
name - of primitiveType to getPrimitiveType matching the nameIllegalArgumentException - if name not foundCopyright © 2013 Real Logic Ltd. All Rights Reserved.