Package com.ibm.icu.impl
Class StringRange
- java.lang.Object
-
- com.ibm.icu.impl.StringRange
-
public class StringRange extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStringRange.Adder
-
Field Summary
Fields Modifier and Type Field Description static Comparator<int[]>COMPARE_INT_ARRAYS
-
Constructor Summary
Constructors Constructor Description StringRange()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcompact(Set<String> source, StringRange.Adder adder, boolean shorterPairs)Faster but not as good compaction.static voidcompact(Set<String> source, StringRange.Adder adder, boolean shorterPairs, boolean moreCompact)Compact the set of strings.static Collection<String>expand(String start, String end, boolean requireSameLength, Collection<String> output)
-
-
-
Field Detail
-
COMPARE_INT_ARRAYS
public static final Comparator<int[]> COMPARE_INT_ARRAYS
-
-
Method Detail
-
compact
public static void compact(Set<String> source, StringRange.Adder adder, boolean shorterPairs, boolean moreCompact)
Compact the set of strings.- Parameters:
source- set of stringsadder- adds each pair to the output. See theStringRange.Adderinterface.shorterPairs- use abc-d instead of abc-abdmoreCompact- use a more compact form, at the expense of more processing. If false, source must be sorted.
-
compact
public static void compact(Set<String> source, StringRange.Adder adder, boolean shorterPairs)
Faster but not as good compaction. Only looks at final codepoint.- Parameters:
source- set of stringsadder- adds each pair to the output. See theStringRange.Adderinterface.shorterPairs- use abc-d instead of abc-abd
-
expand
public static Collection<String> expand(String start, String end, boolean requireSameLength, Collection<String> output)
-
-