Class PathRev
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.PathRev
-
- All Implemented Interfaces:
Comparable<PathRev>,CacheValue
public final class PathRev extends Object implements CacheValue, Comparable<PathRev>
A cache key implementation, which is a combination of a path and a revision vector.
-
-
Constructor Summary
Constructors Constructor Description PathRev(@NotNull Path path, @NotNull RevisionVector revision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(@NotNull PathRev other)booleanequals(Object obj)intgetMemory()The estimated amount of memory used by this object, in bytes.PathgetPath()RevisionVectorgetRevision()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
PathRev
public PathRev(@NotNull @NotNull Path path, @NotNull @NotNull RevisionVector revision)
-
-
Method Detail
-
getPath
public Path getPath()
-
getRevision
public RevisionVector getRevision()
-
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
-
compareTo
public int compareTo(@NotNull @NotNull PathRev other)- Specified by:
compareToin interfaceComparable<PathRev>
-
-