public static enum AtomPrefixTypes.HeaderType extends java.lang.Enum<AtomPrefixTypes.HeaderType>
AtomPrefixTypes.Level
of the header, while the final two bits specify the AtomPrefixTypes.HeaderType
.
00 is not currently used Modifier and Type | Field and Description |
---|---|
static int |
BITS |
byte |
byteValue |
int |
id |
static int |
VALUES |
Modifier and Type | Method and Description |
---|---|
static AtomPrefixTypes.HeaderType |
fromByte(byte b)
Inspect the final two bits of the provided byte and return the corresponding
AtomPrefixTypes.HeaderType |
boolean |
match(byte b) |
static AtomPrefixTypes.HeaderType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AtomPrefixTypes.HeaderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AtomPrefixTypes.HeaderType Indexed
public static final AtomPrefixTypes.HeaderType Keyed
public static final int BITS
public static final int VALUES
public final int id
public final byte byteValue
public static AtomPrefixTypes.HeaderType[] values()
for (AtomPrefixTypes.HeaderType c : AtomPrefixTypes.HeaderType.values()) System.out.println(c);
public static AtomPrefixTypes.HeaderType 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 static AtomPrefixTypes.HeaderType fromByte(byte b)
AtomPrefixTypes.HeaderType
b
- an atom prefixpublic boolean match(byte b)