Class MemoryDiffCache.Key
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.MemoryDiffCache.Key
-
- All Implemented Interfaces:
Comparable<MemoryDiffCache.Key>,CacheValue
- Enclosing class:
- MemoryDiffCache
public static final class MemoryDiffCache.Key extends Object implements CacheValue, Comparable<MemoryDiffCache.Key>
-
-
Constructor Summary
Constructors Constructor Description Key(@NotNull Path path, @NotNull RevisionVector from, @NotNull RevisionVector to)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString()intcompareTo(MemoryDiffCache.Key other)booleanequals(Object obj)static MemoryDiffCache.KeyfromString(@NotNull String s)@NotNull RevisionVectorgetFromRevision()intgetMemory()The estimated amount of memory used by this object, in bytes.@NotNull PathgetPath()@NotNull RevisionVectorgetToRevision()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
Key
public Key(@NotNull @NotNull Path path, @NotNull @NotNull RevisionVector from, @NotNull @NotNull RevisionVector to)
-
-
Method Detail
-
getPath
@NotNull public @NotNull Path getPath()
-
getFromRevision
@NotNull public @NotNull RevisionVector getFromRevision()
-
getToRevision
@NotNull public @NotNull RevisionVector getToRevision()
-
asString
public String asString()
-
fromString
public static MemoryDiffCache.Key fromString(@NotNull @NotNull String s)
-
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 MemoryDiffCache.Key other)- Specified by:
compareToin interfaceComparable<MemoryDiffCache.Key>
-
-