Class StableRevisionComparator

java.lang.Object
org.apache.jackrabbit.oak.plugins.document.StableRevisionComparator
All Implemented Interfaces:
Comparator<Revision>

public class StableRevisionComparator extends Object implements 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.