Package 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
  Description
  `StampComparator()`

- ## Method Summary

  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 Details

  - ### StampComparator

    public StampComparator()

- ## Method Details

  - ### compare

    public int compare(Packet p1, Packet p2)
    Specified by:
      `compare` in interface `Comparator<Packet>`