public enum BaseType extends Enum<BaseType>
| Enum Constant and Description |
|---|
BINARY
A list of bytes.
|
BOOLEAN
A boolean value, can either be true or false.
|
DECIMAL
An arbitrary-precision decimal.
|
DOUBLE
A Double-precision floating-point number as defined by IEEE 754.
|
ENUM
An enum value
|
FLOAT
A Single-precision floating-point number as defined by IEEE 754.
|
INT
A 32-bit integer.
|
INT64
A 64-bit integer.
|
LIST
A list type.
|
MAP
A map type.
|
MESSAGE
Another message.
|
POSITION
A position.
|
POSITION_TIME
A position coupled with a timestamp.
|
SET
A set type.
|
TEXT
A UTF-8 String.
|
TIMESTAMP
A 64-bit timestamp type.
|
VARINT
An arbitrary-precision integer type.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getJavaType() |
boolean |
isAnyOf(BaseType... states)
Returns true if the state is any of the specified states, otherwise false.
|
boolean |
isComplexType()
Returns whether or not this type is complex type.
|
boolean |
isPrimitive() |
boolean |
isReferenceType() |
static BaseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseType BINARY
public static final BaseType BOOLEAN
public static final BaseType DECIMAL
public static final BaseType DOUBLE
public static final BaseType ENUM
public static final BaseType FLOAT
public static final BaseType INT
public static final BaseType INT64
public static final BaseType LIST
public static final BaseType MAP
public static final BaseType MESSAGE
public static final BaseType POSITION
public static final BaseType POSITION_TIME
public static final BaseType SET
public static final BaseType TEXT
public static final BaseType TIMESTAMP
public static final BaseType VARINT
public static BaseType[] values()
for (BaseType c : BaseType.values()) System.out.println(c);
public static BaseType 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 Class<?> getJavaType()
public boolean isAnyOf(BaseType... states)
states - the states to check if this state is inpublic boolean isComplexType()
public boolean isPrimitive()
public boolean isReferenceType()
Copyright © 2012–2014 Danish Maritime Authority. All rights reserved.