public static final class MemoryDiffCache.Key extends Object implements CacheValue, Comparable<MemoryDiffCache.Key>
Constructor and Description |
---|
Key(@NotNull Path path,
@NotNull RevisionVector from,
@NotNull RevisionVector to) |
Modifier and Type | Method and Description |
---|---|
String |
asString() |
int |
compareTo(MemoryDiffCache.Key other) |
boolean |
equals(Object obj) |
static MemoryDiffCache.Key |
fromString(@NotNull 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() |
String |
toString() |
public Key(@NotNull @NotNull Path path, @NotNull @NotNull RevisionVector from, @NotNull @NotNull RevisionVector to)
@NotNull public @NotNull Path getPath()
@NotNull public @NotNull RevisionVector getFromRevision()
@NotNull public @NotNull RevisionVector getToRevision()
public String asString()
public static MemoryDiffCache.Key fromString(@NotNull @NotNull String s)
public int getMemory()
CacheValue
getMemory
in interface CacheValue
public int compareTo(@NotNull MemoryDiffCache.Key other)
compareTo
in interface Comparable<MemoryDiffCache.Key>
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.