Package com.ibm.icu.util
Enum CodePointTrie.Type
- java.lang.Object
-
- java.lang.Enum<CodePointTrie.Type>
-
- com.ibm.icu.util.CodePointTrie.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CodePointTrie.Type>
- Enclosing class:
- CodePointTrie
public static enum CodePointTrie.Type extends java.lang.Enum<CodePointTrie.Type>
Selectors for the type of a CodePointTrie. Different trade-offs for size vs. speed.Use null for
CodePointTrie.fromBinary(com.ibm.icu.util.CodePointTrie.Type, com.ibm.icu.util.CodePointTrie.ValueWidth, java.nio.ByteBuffer)
to accept any type;CodePointTrie.getType()
will return the actual type.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Type()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CodePointTrie.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CodePointTrie.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAST
public static final CodePointTrie.Type FAST
Fast/simple/larger BMP data structure. TheCodePointTrie.Fast
subclasses have additional functions for lookup for BMP and supplementary code points.- See Also:
CodePointTrie.Fast
-
SMALL
public static final CodePointTrie.Type SMALL
Small/slower BMP data structure.- See Also:
CodePointTrie.Small
-
-
Method Detail
-
values
public static CodePointTrie.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 (CodePointTrie.Type c : CodePointTrie.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 CodePointTrie.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-