org.decisiondeck.utils.collections
Class SetBackedMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.decisiondeck.utils.collections.SetBackedMap<K,V>
- Type Parameters:
K - the type of the keys to use in this map and in the backing set.V - the type of the values in the map.
- All Implemented Interfaces:
- Map<K,V>
public class SetBackedMap<K,V>
- extends AbstractMap<K,V>
- See Also:
- stackoverflow
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.util.AbstractMap |
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values |
SetBackedMap
public SetBackedMap(Set<K> keys,
Function<? super K,? extends V> funk)
entrySet
public Set<Map.Entry<K,V>> entrySet()
- Specified by:
entrySet in interface Map<K,V>- Specified by:
entrySet in class AbstractMap<K,V>
create
public static <K,V> SetBackedMap<K,V> create(Set<K> keys,
Function<? super K,? extends V> funk)
Copyright © 2011. All Rights Reserved.