public class FetchMap<E> extends LinkedHashMap<E,FetchMode>
Extends an HashMap to add convenient method for safely adding a fetch mode to a map. The method
add(Object, FetchMode) will add the mode only if the new mode implies the previous mode in the map.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
FetchMap() |
FetchMap(Map<? extends E,? extends FetchMode> m) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
boolean |
add(E element,
FetchMode mode) |
void |
addAll(Map<E,FetchMode> m) |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic boolean add(E element, FetchMode mode) throws NullPointerException
NullPointerExceptionpublic boolean add(E element) throws NullPointerException
NullPointerExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.