Class TDLAction.TDLActionComparator

  • All Implemented Interfaces:
    java.util.Comparator
    Enclosing class:
    TDLAction

    public static class TDLAction.TDLActionComparator
    extends java.lang.Object
    implements java.util.Comparator
    A class that compares two TDL actions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Object event1, java.lang.Object event2)
      Compare two TDLEvents.
      • 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

      • TDLActionComparator

        public TDLActionComparator()
    • Method Detail

      • compare

        public int compare​(java.lang.Object event1,
                           java.lang.Object event2)
        Compare two TDLEvents. Two TDL Events are the same if all attributes are the same: timestamp, actionType and actor. For comparison of an actor, the actor name which has to be unique in the model is used.
        Specified by:
        compare in interface java.util.Comparator
        Parameters:
        event1 - First event.
        event2 - Second event.
        Returns:
        The result of the comparison of the two TDL events.