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 int
compareTo(@NotNull NamePathRev other)
boolean
equals(java.lang.Object obj)
int
getMemory()
@NotNull java.lang.String
getName()
@NotNull Path
getPath()
@NotNull RevisionVector
getRevision()
int
hashCode()
java.lang.String
toString()
-
-
-
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:
getMemory
in interfaceorg.apache.jackrabbit.oak.cache.CacheValue
-
compareTo
public int compareTo(@NotNull @NotNull NamePathRev other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<NamePathRev>
-
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
-
-