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