Class RevisionsKey
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.util.RevisionsKey
-
- All Implemented Interfaces:
Comparable<RevisionsKey>,CacheValue
public final class RevisionsKey extends Object implements CacheValue, Comparable<RevisionsKey>
A cache key implementation which consists of twoRevisions.
-
-
Constructor Summary
Constructors Constructor Description RevisionsKey(RevisionVector r1, RevisionVector r2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString()intcompareTo(@NotNull RevisionsKey k)booleanequals(Object obj)static RevisionsKeyfromString(String s)intgetMemory()The estimated amount of memory used by this object, in bytes.RevisionVectorgetRev1()RevisionVectorgetRev2()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
RevisionsKey
public RevisionsKey(RevisionVector r1, RevisionVector r2)
-
-
Method Detail
-
getRev1
public RevisionVector getRev1()
-
getRev2
public RevisionVector getRev2()
-
getMemory
public int getMemory()
Description copied from interface:CacheValueThe estimated amount of memory used by this object, in bytes.- Specified by:
getMemoryin interfaceCacheValue- Returns:
- the estimated number of bytes
-
asString
public String asString()
-
compareTo
public int compareTo(@NotNull @NotNull RevisionsKey k)- Specified by:
compareToin interfaceComparable<RevisionsKey>
-
fromString
public static RevisionsKey fromString(String s)
-
-