public enum ValueLength extends Enum<ValueLength>
Enum Constant and Description |
---|
BYTE |
DOUBLE |
FLOAT |
INT |
LONG |
REFERENCE |
SHORT |
Modifier and Type | Method and Description |
---|---|
int |
byteLength() |
static ValueLength |
getNumberLength(long value) |
static ValueLength |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueLength[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueLength BYTE
public static final ValueLength SHORT
public static final ValueLength INT
public static final ValueLength LONG
public static final ValueLength FLOAT
public static final ValueLength DOUBLE
public static final ValueLength REFERENCE
public static ValueLength[] values()
for (ValueLength c : ValueLength.values()) System.out.println(c);
public static ValueLength 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 int byteLength()
public static ValueLength getNumberLength(long value)
Copyright © 2017. All rights reserved.