Package tigase.xmpp.impl

## Class OfflineMessages.StampComparator

- java.lang.Object
- - tigase.xmpp.impl.OfflineMessages.StampComparator

- All Implemented Interfaces:
    `java.util.Comparator<Packet>`
  Enclosing class:
    OfflineMessages

      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

    Constructors
    Constructor | Description
    --- | ---
    `StampComparator()` |

  - ### 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>`