Class ArchiveCandidate<E>
- java.lang.Object
-
- org.jivesoftware.openfire.archive.ArchiveCandidate<E>
-
- All Implemented Interfaces:
Comparable<ArchiveCandidate<E>>
public class ArchiveCandidate<E> extends Object implements Comparable<ArchiveCandidate<E>>
A to-be-archived entity. Note that the ordering imposed by the Comparable implementation is not consistent with equals, and serves only to order instances by their creation timestamp.
-
-
Constructor Summary
Constructors Constructor Description ArchiveCandidate(E element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ArchiveCandidate<E> o)
Instant
createdAt()
E
getElement()
-
-
-
Constructor Detail
-
ArchiveCandidate
public ArchiveCandidate(E element)
-
-
Method Detail
-
createdAt
public Instant createdAt()
-
getElement
public E getElement()
-
compareTo
public int compareTo(ArchiveCandidate<E> o)
- Specified by:
compareTo
in interfaceComparable<E>
-
-