public class MapLookupExtractor extends LookupExtractor
| Constructor and Description |
|---|
MapLookupExtractor(Map<String,String> map,
boolean isOneToOne) |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String val)
Apply a particular lookup methodology to the input string
|
boolean |
equals(Object o) |
byte[] |
getCacheKey()
Create a cache key for use in results caching
|
Map<String,String> |
getMap() |
int |
hashCode() |
boolean |
isOneToOne() |
List<String> |
unapply(String value)
Provide the reverse mapping from a given value to a list of keys
|
applyAll, unapplyAll@Nullable public String apply(@NotNull String val)
LookupExtractorapply in class LookupExtractorval - The value to apply the lookup to. May not be nullpublic List<String> unapply(String value)
LookupExtractorunapply in class LookupExtractorvalue - the value to apply the reverse lookup
Null and empty are considered to be the same value = nullToEmpty(value)public boolean isOneToOne()
isOneToOne in class LookupExtractorpublic byte[] getCacheKey()
LookupExtractorgetCacheKey in class LookupExtractorCopyright © 2011–2017. All rights reserved.