public class BabelExampleComparator extends Object implements Comparator<BabelExample>
Comparator
for BabelExample
s which sorts by sources.Constructor and Description |
---|
BabelExampleComparator()
Creates the example comparator
|
BabelExampleComparator(BabelSense mainSense)
Creates the example comparator with the sense the examples refer to
|
Modifier and Type | Method and Description |
---|---|
int |
compare(BabelExample b1,
BabelExample b2)
Sort examples 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 BabelExampleComparator(BabelSense mainSense)
mainSense
- the sense the examples refer topublic BabelExampleComparator()
public int compare(BabelExample b1, BabelExample b2)
compare
in interface Comparator<BabelExample>
Copyright © 2016–2021. All rights reserved.