public class Trie2_32 extends Trie2
Trie2.CharSequenceIterator, Trie2.CharSequenceValues, Trie2.Range, Trie2.ValueMapper| Modifier and Type | Method and Description |
|---|---|
static Trie2_32 |
createFromSerialized(ByteBuffer bytes)
Create a Trie2 from its serialized form.
|
int |
get(int codePoint)
Get the value for a code point as stored in the Trie2.
|
int |
getFromU16SingleLead(char codeUnit)
Get a Trie2 value for a UTF-16 code unit.
|
int |
getSerializedLength() |
int |
serialize(OutputStream os)
Serialize a Trie2_32 onto an OutputStream.
|
charSequenceIterator, equals, getVersion, hashCode, iterator, iterator, iteratorForLeadSurrogate, iteratorForLeadSurrogate, serializeHeaderclone, getClass, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static Trie2_32 createFromSerialized(ByteBuffer bytes) throws IOException
bytes - a byte buffer to the serialized form of a UTrie2.IllegalArgumentException - if the stream does not contain a serialized Trie2.IOException - if a read error occurs in the buffer.ClassCastException - if the bytes contains a serialized Trie2_16public final int get(int codePoint)
public int getFromU16SingleLead(char codeUnit)
getFromU16SingleLead in class Trie2codeUnit - a 16 bit code unit or lead surrogate value.public int serialize(OutputStream os) throws IOException
os - the stream to which the serialized Trie2 data will be written.IOExceptionpublic int getSerializedLength()