Class PathRev
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.PathRev
-
- All Implemented Interfaces:
java.lang.Comparable<PathRev>
,CacheValue
public final class PathRev extends java.lang.Object implements CacheValue, java.lang.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 int
compareTo(@NotNull PathRev other)
boolean
equals(java.lang.Object obj)
int
getMemory()
The estimated amount of memory used by this object, in bytes.Path
getPath()
RevisionVector
getRevision()
int
hashCode()
java.lang.String
toString()
-
-
-
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:CacheValue
The estimated amount of memory used by this object, in bytes.- Specified by:
getMemory
in interfaceCacheValue
- Returns:
- the estimated number of bytes
-
compareTo
public int compareTo(@NotNull @NotNull PathRev other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<PathRev>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-