public class TextUnitComparator extends Object implements Comparator<ITextUnit>
TextUnits. Text, isReferent() and (optionally) codes must all be same in order to be a
match.| Constructor and Description |
|---|
TextUnitComparator(boolean codeSensitive) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ITextUnit oldTextUnit,
ITextUnit newTextUnit) |
boolean |
isCodeSensitive() |
void |
setCodeSensitive(boolean codeSensitive) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic void setCodeSensitive(boolean codeSensitive)
public boolean isCodeSensitive()
public int compare(ITextUnit oldTextUnit, ITextUnit newTextUnit)
compare in interface Comparator<ITextUnit>Copyright © 2022. All rights reserved.