Class RevisionsKey
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.util.RevisionsKey
-
- All Implemented Interfaces:
java.lang.Comparable<RevisionsKey>
,CacheValue
public final class RevisionsKey extends java.lang.Object implements CacheValue, java.lang.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 java.lang.String
asString()
int
compareTo(@NotNull RevisionsKey k)
boolean
equals(java.lang.Object obj)
static RevisionsKey
fromString(java.lang.String s)
int
getMemory()
The estimated amount of memory used by this object, in bytes.RevisionVector
getRev1()
RevisionVector
getRev2()
int
hashCode()
java.lang.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
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
asString
public java.lang.String asString()
-
compareTo
public int compareTo(@NotNull @NotNull RevisionsKey k)
- Specified by:
compareTo
in interfacejava.lang.Comparable<RevisionsKey>
-
fromString
public static RevisionsKey fromString(java.lang.String s)
-
-