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 twoRevision
s.
-
-
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 String
asString()
int
compareTo(@NotNull RevisionsKey k)
boolean
equals(Object obj)
static RevisionsKey
fromString(String s)
int
getMemory()
The estimated amount of memory used by this object, in bytes.RevisionVector
getRev1()
RevisionVector
getRev2()
int
hashCode()
String
toString()
-
-
-
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:CacheValue
The estimated amount of memory used by this object, in bytes.- Specified by:
getMemory
in interfaceCacheValue
- Returns:
- the estimated number of bytes
-
asString
public String asString()
-
compareTo
public int compareTo(@NotNull @NotNull RevisionsKey k)
- Specified by:
compareTo
in interfaceComparable<RevisionsKey>
-
fromString
public static RevisionsKey fromString(String s)
-
-