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 intcompareTo(@NotNull NamePathRev other)booleanequals(Object obj)intgetMemory()The estimated amount of memory used by this object, in bytes.@NotNull StringgetName()@NotNull PathgetPath()@NotNull RevisionVectorgetRevision()inthashCode()StringtoString()
-
-
-
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: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 NamePathRev other)- Specified by:
compareToin interfaceComparable<NamePathRev>
-
-