| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final Comparator | |
| private static final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | add(int endIndex, int startOffset, int[] starts, int[] ends, StringBuilder builder, Collection<String> output)
|
| public static void | compact(Set<String>
set of strings source, StringRange.adds each pair to the output. See the adder,Adder interface.use abc-d instead of abc-abd shorterPairs, boolean use a more compact form, at the expense of more processing. If false, source must be sorted. moreCompact)Compact the set of strings. |
| public static void | |
| private static LinkedList | |
| public static Collection |
| COMPARE_INT_ARRAYS | back to summary |
|---|---|
| public static final Comparator<int[]> COMPARE_INT_ARRAYS | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| StringRange | back to summary |
|---|---|
| public StringRange() | |
| add | back to summary |
|---|---|
| private static void add(int endIndex, int startOffset, int[] starts, int[] ends, StringBuilder builder, Collection<String> output) | |
| compact | back to summary |
|---|---|
| public static void compact(Set<String> source, StringRange. Compact the set of strings.
| |
| compact | back to summary |
|---|---|
| public static void compact(Set<String> source, StringRange. Faster but not as good compaction. Only looks at final codepoint.
| |
| compact | back to summary |
|---|---|
| private static LinkedList | |
| expand | back to summary |
|---|---|
| public static Collection | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| add | back to summary |
|---|---|
public void add(String start, String end)
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(StringRange.
the object to be compared. thatImplements java. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public String |
| Range | back to summary |
|---|---|
| public Range(int min, int max) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(StringRange. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final StringRange. |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(StringRange.
the object to be compared. otherImplements java. |
| public String | |
| public int | |
| public boolean | |
| public Integer | |
| public String | |
| public String |
| ranges | back to summary |
|---|---|
| private final StringRange. | |
| Ranges | back to summary |
|---|---|
| public Ranges(String s) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(StringRange. Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| end | back to summary |
|---|---|
| public String end(boolean mostCompact) | |
| firstDifference | back to summary |
|---|---|
| public int firstDifference() | |
| merge | back to summary |
|---|---|
| public boolean merge(int pivot, StringRange. | |
| size | back to summary |
|---|---|
| public Integer size() | |
| start | back to summary |
|---|---|
| public String start() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |