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)
LookupExtractor
apply
in class LookupExtractor
val
- The value to apply the lookup to. May not be nullpublic List<String> unapply(String value)
LookupExtractor
unapply
in class LookupExtractor
value
- 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 LookupExtractor
public byte[] getCacheKey()
LookupExtractor
getCacheKey
in class LookupExtractor
Copyright © 2011–2017. All rights reserved.