Public access is through StringLookupFactory.
StringLookupFactory
| Modifier and Type | Field and Description |
|---|---|
| private final Function | function
Function. |
| Access | Constructor and Description |
|---|---|
| private | FunctionStringLookup(final Function<String, V>
the function, may be null. function)Creates a new instance backed by a Function. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The function result as a string, may be null.the key to be looked up, may be null. key)Implements org. Looks up a String key by applying the function. |
| pack-priv static < the function's input type R> FunctionStringLookup | |
| pack-priv static < the map's value type. V> FunctionStringLookup | |
| public String |
| function | back to summary |
|---|---|
| private final Function<String, V> function Function. | |
| FunctionStringLookup | back to summary |
|---|---|
| private FunctionStringLookup(final Function<String, V> function) Creates a new instance backed by a Function. | |
| lookup | back to summary |
|---|---|
| public String lookup(final String key) Implements org. Looks up a String key by applying the function. If the function is null, then null is returned. The function result object is converted to a string using toString(). | |
| on | back to summary |
|---|---|
| pack-priv static <R> FunctionStringLookup Creates a new instance backed by a Function.
| |
| on | back to summary |
|---|---|
| pack-priv static <V> FunctionStringLookup Creates a new instance backed by a Map. Used by the default lookup.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |