fiftyone.mobile.detection
Enum TrieProvider.OffsetType

java.lang.Object
  extended by java.lang.Enum<TrieProvider.OffsetType>
      extended by fiftyone.mobile.detection.TrieProvider.OffsetType
All Implemented Interfaces:
Serializable, Comparable<TrieProvider.OffsetType>
Enclosing class:
TrieProvider

public static enum TrieProvider.OffsetType
extends Enum<TrieProvider.OffsetType>

The type of integers used to represent the offset to the children.


Enum Constant Summary
Bits16
          The offsets in the node are 16 bit integers.
Bits32
          The offsets in the node are 32 bit integers.
Bits64
          The offsets in the node are 64 bit integers.
 
Method Summary
static TrieProvider.OffsetType fromByte(byte value)
           
static TrieProvider.OffsetType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TrieProvider.OffsetType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Bits16

public static final TrieProvider.OffsetType Bits16
The offsets in the node are 16 bit integers.


Bits32

public static final TrieProvider.OffsetType Bits32
The offsets in the node are 32 bit integers.


Bits64

public static final TrieProvider.OffsetType Bits64
The offsets in the node are 64 bit integers.

Method Detail

values

public static TrieProvider.OffsetType[] 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 (TrieProvider.OffsetType c : TrieProvider.OffsetType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TrieProvider.OffsetType 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

fromByte

public static TrieProvider.OffsetType fromByte(byte value)