Package org.apache.commons.lang.text
Class StrLookup.MapStrLookup
java.lang.Object
org.apache.commons.lang.text.StrLookup
org.apache.commons.lang.text.StrLookup.MapStrLookup
- Enclosing class:
- StrLookup
Lookup implementation that uses a Map.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.lang.text.StrLookup
StrLookup.MapStrLookup -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.lang.text.StrLookup
mapLookup, noneLookup, systemPropertiesLookup
-
Field Details
-
map
Map keys are variable names and value.
-
-
Constructor Details
-
MapStrLookup
MapStrLookup(Map map) 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().
-