| Modifier and Type | Class and Description |
|---|---|
| private static class | RangeSort.
Compare two RangeHolders (using RangeHolder.getRange()) within an XText. |
| public static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <V extends RangeHolder> RangeSort. | |
| public static <V extends RangeHolder> RangeSort. | |
| public static <V extends RangeHolder> void | sortWithinPartition(List<V> rangeHolders)
Sort a list of RangeHolder values known to share the same getText(). |
| RangeSort | back to summary |
|---|---|
| private RangeSort() | |
| partitionAndSortRanges | back to summary |
|---|---|
| public static <V extends RangeHolder> RangeSort. Note RangeHolder.getRange() is called many times. | |
| partitionRanges | back to summary |
|---|---|
| public static <V extends RangeHolder> RangeSort. Partition RangeHolders by the corresponding XText. | |
| sortWithinPartition | back to summary |
|---|---|
| public static <V extends RangeHolder> void sortWithinPartition(List<V> rangeHolders) Sort a list of RangeHolder values known to share the same getText(). Note RangeHolder.getRange() is called many times. | |
Note
since we only look at the ranges, this comparison is generally not consistent with `equals` on the RangeHolders. Probably should not be used for key comparison in TreeMap<RangeHolder> or Set<RangeHolder>
| Modifier and Type | Field and Description |
|---|---|
| private final com. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(RangeHolder
the first object to be compared. a, RangeHolder the second object to be compared. b)Implements java. Assumes a and b belong to the same XText as cmp. |
| cmp | back to summary |
|---|---|
| private final com. | |
| HolderComparatorWithinPartition | back to summary |
|---|---|
| pack-priv HolderComparatorWithinPartition(com. | |
| compare | back to summary |
|---|---|
| public int compare(RangeHolder a, RangeHolder b) Implements java. Assumes a and b belong to the same XText as cmp.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| partitions | back to summary |
|---|---|
| private final Map<com. | |
| RangePartitions | back to summary |
|---|---|
| public RangePartitions() | |
| add | back to summary |
|---|---|
| public void add(V holder) | |
| getPartitions | back to summary |
|---|---|
| public List | |