Class MemoryDiffCache.Key
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.document.MemoryDiffCache.Key
-
- All Implemented Interfaces:
java.lang.Comparable<MemoryDiffCache.Key>
,CacheValue
- Enclosing class:
- MemoryDiffCache
public static final class MemoryDiffCache.Key extends java.lang.Object implements CacheValue, java.lang.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 java.lang.String
asString()
int
compareTo(MemoryDiffCache.Key other)
boolean
equals(java.lang.Object obj)
static MemoryDiffCache.Key
fromString(@NotNull java.lang.String s)
@NotNull RevisionVector
getFromRevision()
int
getMemory()
The estimated amount of memory used by this object, in bytes.@NotNull Path
getPath()
@NotNull RevisionVector
getToRevision()
int
hashCode()
java.lang.String
toString()
-
-
-
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 java.lang.String asString()
-
fromString
public static MemoryDiffCache.Key fromString(@NotNull @NotNull java.lang.String s)
-
getMemory
public int getMemory()
Description copied from interface:CacheValue
The estimated amount of memory used by this object, in bytes.- Specified by:
getMemory
in interfaceCacheValue
- Returns:
- the estimated number of bytes
-
compareTo
public int compareTo(@NotNull MemoryDiffCache.Key other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<MemoryDiffCache.Key>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-