@Immutable public class LookupTableImpl extends Object implements LookupTable
Map
.Constructor and Description |
---|
LookupTableImpl(Map<Value,Value> table)
Create a new lookup table based on the given map.
|
Modifier and Type | Method and Description |
---|---|
Map<Value,Value> |
asMap()
Get the lookup table as map.
|
Set<Value> |
getKeys()
Get all keys available in the lookup table.
|
Value |
lookup(Value key)
Look up a value associated to a given key.
|
com.google.common.collect.ListMultimap<Value,Value> |
reverse()
Get the reverse of the lookup.
|
public Value lookup(Value key)
LookupTable
lookup
in interface LookupTable
key
- the keynull
public Set<Value> getKeys()
LookupTable
getKeys
in interface LookupTable
public com.google.common.collect.ListMultimap<Value,Value> reverse()
LookupTable
reverse
in interface LookupTable
public Map<Value,Value> asMap()
LookupTable
asMap
in interface LookupTable
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a