Package com.ibm.icu.util
Class CodePointMap.Range
java.lang.Object
com.ibm.icu.util.CodePointMap.Range
- Enclosing class:
CodePointMap
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 Summary
Constructors -
Method Summary
-
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 usingCodePointMap.iterator()
, iteration will resume after the newly set end.- Parameters:
start
- new start code pointend
- new end code pointvalue
- new value
-