public enum PrimitiveType extends java.lang.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(java.lang.String name)
Lookup PrimitiveType by String name and return Enum.
|
static boolean |
isUnsigned(PrimitiveType type)
Is the type an unsigned type like in C.
|
PrimitiveValue |
maxValue()
The maxValue of the primitive type.
|
PrimitiveValue |
minValue()
The minValue of the primitive type.
|
PrimitiveValue |
nullValue()
The nullValue of the primitive type.
|
java.lang.String |
primitiveName()
The name of the primitive type as a String.
|
int |
size()
The encodedLength of the primitive type in octets.
|
static PrimitiveType |
valueOf(java.lang.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(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 nullpublic java.lang.String primitiveName()
public int size()
public PrimitiveValue minValue()
public PrimitiveValue maxValue()
public PrimitiveValue nullValue()
public static boolean isUnsigned(PrimitiveType type)
type
- to be tested.public static PrimitiveType get(java.lang.String name)
name
- of primitiveType to getPrimitiveType
matching the namejava.lang.IllegalArgumentException
- if name not foundCopyright © 2014-2017 Real Logic Ltd. All Rights Reserved.