edu.rice.cs.plt.collect
Interface LambdaMap<K,V>

All Superinterfaces:
Lambda<K,V>, java.util.Map<K,V>
All Known Implementing Classes:
AbstractKeyBasedMap, ComposedMap, DelegatingMap, DictionaryMap, EmptyMap, ImmutableMap, MappedMap, SingletonMap, UnionMap

public interface LambdaMap<K,V>
extends java.util.Map<K,V>, Lambda<K,V>

A Map that can be treated as a Lambda. The result of value(x) must always be the same as the result of get(x). keySet() is also overridden to return a PredicateSets.

See Also:
LambdaUtil.wrapPartial(edu.rice.cs.plt.lambda.Thunk, boolean, edu.rice.cs.plt.lambda.Predicate)

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 PredicateSet<K> keySet()
           
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, put, putAll, remove, size, values
 
Methods inherited from interface edu.rice.cs.plt.lambda.Lambda
value
 

Method Detail

keySet

PredicateSet<K> keySet()
Specified by:
keySet in interface java.util.Map<K,V>