Class NamePathRev

  • All Implemented Interfaces:
    java.lang.Comparable<NamePathRev>, CacheValue

    public final class NamePathRev
    extends java.lang.Object
    implements CacheValue, java.lang.Comparable<NamePathRev>
    A cache key implementation, which is a combination of a name, path and a revision vector.
    • 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()
      • getMemory

        public int getMemory()
        Description copied from interface: CacheValue
        The estimated amount of memory used by this object, in bytes.
        Specified by:
        getMemory in interface CacheValue
        Returns:
        the estimated number of bytes
      • compareTo

        public int compareTo​(@NotNull
                             @NotNull NamePathRev other)
        Specified by:
        compareTo in interface java.lang.Comparable<NamePathRev>
      • 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