Package it.uniroma1.lcl.babelnet.data
Class BabelGlossComparator
- java.lang.Object
-
- it.uniroma1.lcl.babelnet.data.BabelGlossComparator
-
- All Implemented Interfaces:
Comparator<BabelGloss>
public class BabelGlossComparator extends Object implements Comparator<BabelGloss>
Comparator
forBabelGloss
es which sorts by source.- Author:
- navigli, vannella
-
-
Constructor Summary
Constructors Constructor Description BabelGlossComparator()
Creates the gloss comparatorBabelGlossComparator(BabelSense mainSense)
Creates the gloss comparator with the sense the glosses refer to
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(BabelGloss b1, BabelGloss b2)
Sorts glosses by language and source-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
BabelGlossComparator
public BabelGlossComparator(BabelSense mainSense)
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 Detail
-
compare
public int compare(BabelGloss b1, BabelGloss b2)
Sorts glosses by language and source- Specified by:
compare
in interfaceComparator<BabelGloss>
-
-