Package net.sf.tweety.arg.rankings.util
Class LexicographicIntTupleComparator
- java.lang.Object
-
- net.sf.tweety.arg.rankings.util.LexicographicIntTupleComparator
-
- All Implemented Interfaces:
Comparator<int[]>
public class LexicographicIntTupleComparator extends Object implements Comparator<int[]>
Compares tuples of integers according to the lexicographic ordering as described in [Cayrol, Lagasquie-Schiex. Graduality in argumentation. 2005].- Author:
- Anna Gessler
-
-
Field Summary
Fields Modifier and Type Field Description static doublePRECISIONPrecision for comparing values.
-
Constructor Summary
Constructors Constructor Description LexicographicIntTupleComparator()
-
Method Summary
Modifier and Type Method Description intcompare(int[] o1, int[] o2)-
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
-
-
-
-
Field Detail
-
PRECISION
public static final double PRECISION
Precision for comparing values.- See Also:
- Constant Field Values
-
-
Method Detail
-
compare
public int compare(int[] o1, int[] o2)- Specified by:
comparein interfaceComparator<int[]>
-
-