Package com.ibm.icu.util
Class CodePointMap.Range
- java.lang.Object
-
- com.ibm.icu.util.CodePointMap.Range
-
- Enclosing class:
- CodePointMap
public static final class CodePointMap.Range extends java.lang.Object
Range iteration result data. Code points from start to end map to the same value. The value may have been modified byCodePointMap.ValueFilter.apply(int)
, or it may be the surrogateValue if a RangeOption other than "normal" was used.
-
-
Constructor Summary
Constructors Constructor Description Range()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEnd()
int
getStart()
int
getValue()
void
set(int start, int end, int value)
Sets the range.
-
-
-
Method Detail
-
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 usingCodePointMap.iterator()
, iteration will resume after the newly set end.- Parameters:
start
- new start code pointend
- new end code pointvalue
- new value
-
-