tigase.xmpp.impl

## Class OfflineMessages.StampComparator

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

- All Implemented Interfaces:
    Comparator<Packet>
  Enclosing class:
    OfflineMessages

      public static class OfflineMessages.StampComparator
      extends Object
      implements 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 and Description
    `StampComparator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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

      `comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, 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 `Comparator<Packet>`

Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.