Class BabelGlossComparator
java.lang.Object
it.uniroma1.lcl.babelnet.data.BabelGlossComparator
- All Implemented Interfaces:
Comparator<BabelGloss>
Comparator for BabelGlosses which sorts by source.- Author:
- navigli, vannella
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the gloss comparatorBabelGlossComparator(BabelSense mainSense) Creates the gloss comparator with the sense the glosses refer to -
Method Summary
Modifier and TypeMethodDescriptionintcompare(BabelGloss b1, BabelGloss b2) Sorts glosses by language and sourceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
BabelGlossComparator
Creates the gloss comparator with the sense the glosses refer to- Parameters:
mainSense- the sense the glosses refer to
-
BabelGlossComparator
public BabelGlossComparator()Creates the gloss comparator
-
-
Method Details
-
compare
Sorts glosses by language and source- Specified by:
comparein interfaceComparator<BabelGloss>
-