public class BabelGlossComparator extends Object implements Comparator<BabelGloss>
Comparator
for BabelGloss
es 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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public 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–2018. All rights reserved.