Class StableRevisionComparator
java.lang.Object
org.apache.jackrabbit.oak.plugins.document.StableRevisionComparator
- All Implemented Interfaces:
Comparator<Revision>
StableRevisionComparator
implements a revision comparator, which
is only based on stable information available in the two revisions presented
to this comparator. This class is used in sorted collections where
revision keys must have a stable ordering independent from the time when
a revision was seen.
Revisions are first ordered by timestamp, then counter and finally cluster node id.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<Revision>
static final Comparator<Revision>
-
Method Summary
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
-
Field Details
-
INSTANCE
-
REVERSE
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Revision>
-