org.shetline.io
Enum UTF8.LengthMode
java.lang.Object
java.lang.Enum<UTF8.LengthMode>
org.shetline.io.UTF8.LengthMode
- All Implemented Interfaces:
- Serializable, Comparable<UTF8.LengthMode>
- Enclosing class:
- UTF8
public static enum UTF8.LengthMode
- extends Enum<UTF8.LengthMode>
Method Summary |
static UTF8.LengthMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static UTF8.LengthMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
NONE
public static final UTF8.LengthMode NONE
ONE_BYTE_LENGTH
public static final UTF8.LengthMode ONE_BYTE_LENGTH
TWO_BYTE_LENGTH
public static final UTF8.LengthMode TWO_BYTE_LENGTH
FOUR_BYTE_LENGTH
public static final UTF8.LengthMode FOUR_BYTE_LENGTH
EOL
public static final UTF8.LengthMode EOL
NULL_CHAR
public static final UTF8.LengthMode NULL_CHAR
ANY_CTRL
public static final UTF8.LengthMode ANY_CTRL
values
public static UTF8.LengthMode[] 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 (UTF8.LengthMode c : UTF8.LengthMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static UTF8.LengthMode 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 name
NullPointerException
- if the argument is null