Class RuleComparator<T extends Invertable>

  • Type Parameters:
    T - is the type of the language that the ASPIC theory's rules range over
    All Implemented Interfaces:
    java.util.Comparator<InferenceRule<T>>

    public class RuleComparator<T extends Invertable>
    extends java.lang.Object
    implements java.util.Comparator<InferenceRule<T>>
    Author:
    Nils Geilen A simple comparator, that compares inference rules
    • Constructor Summary

      Constructors 
      Constructor Description
      RuleComparator​(java.util.List<java.lang.String> rules)
      Constructs a new comparator for rules
    • Method Summary

      Modifier and Type Method Description
      int compare​(InferenceRule<T> o1, InferenceRule<T> 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
    • Constructor Detail

      • RuleComparator

        public RuleComparator​(java.util.List<java.lang.String> rules)
        Constructs a new comparator for rules
        Parameters:
        rules - rules in ascending order