Package com.ibm.icu.util
Class CodePointTrie.Small
- java.lang.Object
-
- com.ibm.icu.util.CodePointMap
-
- com.ibm.icu.util.CodePointTrie
-
- com.ibm.icu.util.CodePointTrie.Small
-
- All Implemented Interfaces:
java.lang.Iterable<CodePointMap.Range>
- Direct Known Subclasses:
CodePointTrie.Small16
,CodePointTrie.Small32
,CodePointTrie.Small8
- Enclosing class:
- CodePointTrie
public abstract static class CodePointTrie.Small extends CodePointTrie
A CodePointTrie withCodePointTrie.Type.SMALL
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.ibm.icu.util.CodePointTrie
CodePointTrie.Fast, CodePointTrie.Fast16, CodePointTrie.Fast32, CodePointTrie.Fast8, CodePointTrie.Small, CodePointTrie.Small16, CodePointTrie.Small32, CodePointTrie.Small8, CodePointTrie.Type, CodePointTrie.ValueWidth
-
Nested classes/interfaces inherited from class com.ibm.icu.util.CodePointMap
CodePointMap.Range, CodePointMap.RangeOption, CodePointMap.StringIterator, CodePointMap.ValueFilter
-
-
Field Summary
-
Fields inherited from class com.ibm.icu.util.CodePointTrie
data, dataLength, highStart
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected int
cpIndex(int c)
Deprecated.This API is ICU internal only.static CodePointTrie.Small
fromBinary(CodePointTrie.ValueWidth valueWidth, java.nio.ByteBuffer bytes)
Creates a trie from its binary form.CodePointTrie.Type
getType()
Returns the trie type.CodePointMap.StringIterator
stringIterator(java.lang.CharSequence s, int sIndex)
Returns an iterator (not a java.util.Iterator) over code points of a string for fetching map values.-
Methods inherited from class com.ibm.icu.util.CodePointTrie
asciiGet, fastIndex, fromBinary, get, getRange, getValueWidth, smallIndex, toBinary
-
Methods inherited from class com.ibm.icu.util.CodePointMap
getRange, iterator
-
-
-
-
Method Detail
-
fromBinary
public static CodePointTrie.Small fromBinary(CodePointTrie.ValueWidth valueWidth, java.nio.ByteBuffer bytes)
Creates a trie from its binary form. Same asCodePointTrie.fromBinary(Type, ValueWidth, ByteBuffer)
withCodePointTrie.Type.SMALL
.- Parameters:
valueWidth
- selects the number of bits in a data value; this method throws an exception if the valueWidth does not match the binary data; use null to accept any data value widthbytes
- a buffer containing the binary data of a CodePointTrie- Returns:
- the trie
-
getType
public final CodePointTrie.Type getType()
Description copied from class:CodePointTrie
Returns the trie type.- Specified by:
getType
in classCodePointTrie
- Returns:
CodePointTrie.Type.SMALL
-
cpIndex
@Deprecated protected final int cpIndex(int c)
Deprecated.This API is ICU internal only.- Specified by:
cpIndex
in classCodePointTrie
-
stringIterator
public final CodePointMap.StringIterator stringIterator(java.lang.CharSequence s, int sIndex)
Returns an iterator (not a java.util.Iterator) over code points of a string for fetching map values.- Overrides:
stringIterator
in classCodePointMap
- Parameters:
s
- string to iterate oversIndex
- string index where the iteration will start- Returns:
- the iterator
-
-