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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.lang3.text.StrLookup
StrLookup.MapStrLookup<V>
-
-
Constructor Summary
Constructors Constructor Description MapStrLookup(java.util.Map<java.lang.String,V> map)
Creates a new instance backed by a Map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
lookup(java.lang.String key)
Looks up a String key to a String value using the map.-
Methods inherited from class org.apache.commons.lang3.text.StrLookup
mapLookup, noneLookup, systemPropertiesLookup
-
-
-
-
Field Detail
-
map
private final java.util.Map<java.lang.String,V> map
Map keys are variable names and value.
-
-
Constructor Detail
-
MapStrLookup
MapStrLookup(java.util.Map<java.lang.String,V> map)
Creates a new instance backed by a Map.- Parameters:
map
- the map of keys to values, may be null
-
-