Class LexicographicIntTupleComparator

  • All Implemented Interfaces:
    java.util.Comparator<int[]>

    public class LexicographicIntTupleComparator
    extends java.lang.Object
    implements java.util.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 double PRECISION
      Precision for comparing values.
    • Method Summary

      Modifier and Type Method Description
      int compare​(int[] o1, int[] o2)  
      • 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 Detail

      • PRECISION

        public static final double PRECISION
        Precision for comparing values.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LexicographicIntTupleComparator

        public LexicographicIntTupleComparator()
    • Method Detail

      • compare

        public int compare​(int[] o1,
                           int[] o2)
        Specified by:
        compare in interface java.util.Comparator<int[]>