Package com.maxmind.db
Enum Decoder.Type
- java.lang.Object
-
- java.lang.Enum<Decoder.Type>
-
- com.maxmind.db.Decoder.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Decoder.Type>
- Enclosing class:
- Decoder
static enum Decoder.Type extends Enum<Decoder.Type>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static Decoder.Type[]
values
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Decoder.Type
fromControlByte(int b)
static Decoder.Type
get(int i)
static Decoder.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Decoder.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXTENDED
public static final Decoder.Type EXTENDED
-
POINTER
public static final Decoder.Type POINTER
-
UTF8_STRING
public static final Decoder.Type UTF8_STRING
-
DOUBLE
public static final Decoder.Type DOUBLE
-
BYTES
public static final Decoder.Type BYTES
-
UINT16
public static final Decoder.Type UINT16
-
UINT32
public static final Decoder.Type UINT32
-
MAP
public static final Decoder.Type MAP
-
INT32
public static final Decoder.Type INT32
-
UINT64
public static final Decoder.Type UINT64
-
UINT128
public static final Decoder.Type UINT128
-
ARRAY
public static final Decoder.Type ARRAY
-
CONTAINER
public static final Decoder.Type CONTAINER
-
END_MARKER
public static final Decoder.Type END_MARKER
-
BOOLEAN
public static final Decoder.Type BOOLEAN
-
FLOAT
public static final Decoder.Type FLOAT
-
-
Field Detail
-
values
static final Decoder.Type[] values
-
-
Method Detail
-
values
public static Decoder.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Decoder.Type c : Decoder.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Decoder.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
get
public static Decoder.Type get(int i)
-
fromControlByte
public static Decoder.Type fromControlByte(int b)
-
-