Class PathRev

  • All Implemented Interfaces:
    java.lang.Comparable<PathRev>, org.apache.jackrabbit.oak.cache.CacheValue

    public final class PathRev
    extends java.lang.Object
    implements org.apache.jackrabbit.oak.cache.CacheValue, java.lang.Comparable<PathRev>
    A cache key implementation, which is a combination of a path and a revision vector.
    • Constructor Detail

      • PathRev

        public PathRev​(@NotNull
                       @NotNull Path path,
                       @NotNull
                       @NotNull RevisionVector revision)
    • Method Detail

      • getPath

        public Path getPath()
      • getMemory

        public int getMemory()
        Specified by:
        getMemory in interface org.apache.jackrabbit.oak.cache.CacheValue
      • compareTo

        public int compareTo​(@NotNull
                             @NotNull PathRev other)
        Specified by:
        compareTo in interface java.lang.Comparable<PathRev>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object