Class DictionaryLookup<K,V>
- java.lang.Object
-
- uk.gov.gchq.koryphe.function.KorypheFunction<K,V>
-
- uk.gov.gchq.koryphe.impl.function.DictionaryLookup<K,V>
-
- All Implemented Interfaces:
Function<K,V>
public class DictionaryLookup<K,V> extends KorypheFunction<K,V>
ADictionaryLookup
is aKorypheFunction
that takes a key and using a dictionary returns a value.
-
-
Constructor Summary
Constructors Constructor Description DictionaryLookup()
DictionaryLookup(Map<K,V> dictionary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
apply(K key)
boolean
equals(Object o)
Map<K,V>
getDictionary()
int
hashCode()
void
setDictionary(Map<K,V> dictionary)
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classKorypheFunction<K,V>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classKorypheFunction<K,V>
-
-