| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(TextPosition
the first object to be compared. pos1, TextPosition the second object to be compared. pos2)Implements java. Compares its two arguments for order. |
| TextPositionComparator | back to summary |
|---|---|
| public TextPositionComparator() | |
| compare | back to summary |
|---|---|
| public int compare(TextPosition pos1, TextPosition pos2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |