public class BabelSynsetIDRelationComparator extends Object implements Comparator<BabelSynsetRelation>
Comparator
for BabelSynsetRelation
s that (a) puts manual relations
first; (b) sorts relations using their relation type (HYPERNYM, HYPONYM and MERONYM);
(c) sorts lexicographically using their relation name;
(d) sorts lexicographically using their id target;Constructor and Description |
---|
BabelSynsetIDRelationComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(BabelSynsetRelation rel1,
BabelSynsetRelation rel2) |
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 int compare(BabelSynsetRelation rel1, BabelSynsetRelation rel2)
compare
in interface Comparator<BabelSynsetRelation>
Copyright © 2016–2018. All rights reserved.