Class XEventTimeStampComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<org.deckfour.xes.model.XEvent>

    public class XEventTimeStampComparator
    extends java.lang.Object
    implements java.util.Comparator<org.deckfour.xes.model.XEvent>, java.io.Serializable
    Event comparator based on timestamp of events. If one of two events does not have a timestamp and the other does, it is considered smaller than the other event. If both have no timestamp they are considered equal.
    Author:
    B.F.A. Hompes
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DESCRIPTION  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(org.deckfour.xes.model.XEvent e1, org.deckfour.xes.model.XEvent e2)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

      • DESCRIPTION

        public static final java.lang.String DESCRIPTION
    • Constructor Detail

      • XEventTimeStampComparator

        public XEventTimeStampComparator()
    • Method Detail

      • compare

        public int compare​(org.deckfour.xes.model.XEvent e1,
                           org.deckfour.xes.model.XEvent e2)
        Specified by:
        compare in interface java.util.Comparator<org.deckfour.xes.model.XEvent>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object