Class LexicographicIntTupleComparator
java.lang.Object
org.tweetyproject.arg.rankings.util.LexicographicIntTupleComparator
- All Implemented Interfaces:
Comparator<int[]>
This comparator compares tuples of integers according to the lexicographic ordering as described in
[Cayrol, Lagasquie-Schiex. Graduality in argumentation. 2005].
- Author:
- Anna Gessler
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
PRECISION
public static final double PRECISIONPrecision for comparing values.- See Also:
-
-
Constructor Details
-
LexicographicIntTupleComparator
public LexicographicIntTupleComparator()Default Constructor
-
-
Method Details
-
compare
public int compare(int[] o1, int[] o2) - Specified by:
compare
in interfaceComparator<int[]>
-