Interface Trie2.ValueMapper
- All Known Implementing Classes:
UCharacter.UCharacterTypeIterator.MaskType
- Enclosing class:
Trie2
public static interface Trie2.ValueMapper
When iterating over the contents of a Trie2, an instance of TrieValueMapper may be used to
remap the values from the Trie2. The remapped values will be used both in determining the
ranges of codepoints and as the value to be returned for each range.
Example of use, with an anonymous subclass of TrieValueMapper:
ValueMapper m = new ValueMapper() { int map(int in) {return in invalid input: '&' 0x1f;}; } for
(Iterator
-
Method Summary
-
Method Details
-
map
int map(int originalVal)
-