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