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 & 0x1f;}; } for (Iterator iter = trie.iterator(m); i.hasNext(); ) { Trie2EnumRange r = i.next(); ... // Do something with the range r. }
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    map(int originalVal)
     
  • Method Details

    • map

      int map(int originalVal)