static final class UriCanonicalizer.BoundedHashMap extends java.util.LinkedHashMap<UriCanonicalizer.CanonicalKey,java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
private static int |
DEFAULT_SIZE
Let's create cache big enough to usually have enough space for
all/most entries for normal cases, but that won't grow
indefinitely for degenerate cases
|
private static int |
MAX_SIZE |
| Constructor and Description |
|---|
BoundedHashMap() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
removeEldestEntry(java.util.Map.Entry<UriCanonicalizer.CanonicalKey,java.lang.String> entry) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeprivate static final int DEFAULT_SIZE
private static final int MAX_SIZE
public boolean removeEldestEntry(java.util.Map.Entry<UriCanonicalizer.CanonicalKey,java.lang.String> entry)
removeEldestEntry in class java.util.LinkedHashMap<UriCanonicalizer.CanonicalKey,java.lang.String>