org.decisiondeck.utils.collections
Class SetBackedMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
SetBackedMap(Set<K> keys, Function<? super K,? extends V> funk)
           
 
Method Summary
static
<K,V> SetBackedMap<K,V>
create(Set<K> keys, Function<? super K,? extends V> funk)
           
 Set<Map.Entry<K,V>> entrySet()
           
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetBackedMap

public SetBackedMap(Set<K> keys,
                    Function<? super K,? extends V> funk)
Method Detail

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.