Class OfflineMessages.StampComparator

  • All Implemented Interfaces:
    Enclosing class:

    public static class OfflineMessages.StampComparator
    extends java.lang.Object
    implements java.util.Comparator<Packet>
    Comparator interface implementation for the purpose of sorting Elements retrieved from the repository by the timestamp stored in delay element.
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Packet p1, Packet p2)  
      • 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

      • StampComparator

        public StampComparator()
    • Method Detail

      • compare

        public int compare​(Packet p1,
                           Packet p2)
        Specified by:
        compare in interface java.util.Comparator<Packet>