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, get, removeEldestEntryclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic boolean add(E element, FetchMode mode) throws NullPointerException
NullPointerExceptionpublic boolean add(E element) throws NullPointerException
NullPointerExceptionCopyright © 2016 JBoss by Red Hat. All Rights Reserved.