Class CodePointMap.Range

java.lang.Object
com.ibm.icu.util.CodePointMap.Range
Enclosing class:
CodePointMap

public static final class CodePointMap.Range extends Object
Range iteration result data. Code points from start to end map to the same value. The value may have been modified by CodePointMap.ValueFilter.apply(int), or it may be the surrogateValue if a RangeOption other than "normal" was used.
See Also:
  • Constructor Details

    • Range

      public Range()
      Constructor. Sets start and end to -1 and value to 0.
  • Method Details

    • getStart

      public int getStart()
      Returns:
      the start code point
    • getEnd

      public int getEnd()
      Returns:
      the (inclusive) end code point
    • getValue

      public int getValue()
      Returns:
      the range value
    • set

      public void set(int start, int end, int value)
      Sets the range. When using CodePointMap.iterator(), iteration will resume after the newly set end.
      Parameters:
      start - new start code point
      end - new end code point
      value - new value