Class NamePathRev
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.NamePathRev
-
- All Implemented Interfaces:
java.lang.Comparable<NamePathRev>,org.apache.jackrabbit.oak.cache.CacheValue
public final class NamePathRev extends java.lang.Object implements org.apache.jackrabbit.oak.cache.CacheValue, java.lang.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 java.lang.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(java.lang.Object obj)intgetMemory()@NotNull java.lang.StringgetName()@NotNull PathgetPath()@NotNull RevisionVectorgetRevision()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
NamePathRev
public NamePathRev(@NotNull @NotNull java.lang.String name, @NotNull @NotNull Path path, @NotNull @NotNull RevisionVector revision)
-
-
Method Detail
-
getPath
@NotNull public @NotNull Path getPath()
-
getName
@NotNull public @NotNull java.lang.String getName()
-
getRevision
@NotNull public @NotNull RevisionVector getRevision()
-
getMemory
public int getMemory()
- Specified by:
getMemoryin interfaceorg.apache.jackrabbit.oak.cache.CacheValue
-
compareTo
public int compareTo(@NotNull @NotNull NamePathRev other)- Specified by:
compareToin interfacejava.lang.Comparable<NamePathRev>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-