public class BabelGlossComparator extends Object implements Comparator<BabelGloss>
Comparator for BabelGlosses which sorts by source.| Constructor and Description |
|---|
BabelGlossComparator()
Creates the gloss comparator
|
BabelGlossComparator(BabelSense mainSense)
Creates the gloss comparator with the sense the glosses refer to
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(BabelGloss b1,
BabelGloss b2)
Sorts glosses by language and source
|
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 BabelGlossComparator(BabelSense mainSense)
mainSense - the sense the glosses refer topublic BabelGlossComparator()
public int compare(BabelGloss b1, BabelGloss b2)
compare in interface Comparator<BabelGloss>Copyright © 2016–2022. All rights reserved.