Package org.apache.commons.lang3.text
Class StrLookup.MapStrLookup<V>
java.lang.Object
org.apache.commons.lang3.text.StrLookup<V>
org.apache.commons.lang3.text.StrLookup.MapStrLookup<V>
Lookup implementation that uses a Map.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.lang3.text.StrLookup
StrLookup.MapStrLookup<V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.lang3.text.StrLookup
mapLookup, noneLookup, systemPropertiesLookup
-
Field Details
-
map
Map keys are variable names and value.
-
-
Constructor Details
-
MapStrLookup
Creates a new instance backed by a Map.- Parameters:
map
- the map of keys to values, may be null
-
-
Method Details
-
lookup
Looks up a String key to a String value using the map.If the map is null, then null is returned. The map result object is converted to a string using toString().
-