Constructor and Description |
---|
CacheMap(int size)
Creates an empty map with limited size.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set |
entrySet() |
boolean |
equals(Object o) |
T |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<S> |
keySet() |
T |
put(S key,
T value) |
void |
putAll(Map t) |
T |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<T> |
values() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public CacheMap(int size)
size
- Maximum number of mapped elements.public boolean containsKey(Object key)
containsKey
in interface Map<S,T>
public boolean containsValue(Object value)
containsValue
in interface Map<S,T>
public int hashCode()
Copyright © 2020 Hitachi Vantara. All rights reserved.