Package com.google.common.css
Class IdentitySubstitutionMap
- java.lang.Object
-
- com.google.common.css.IdentitySubstitutionMap
-
- All Implemented Interfaces:
SubstitutionMap
public class IdentitySubstitutionMap extends java.lang.Object implements SubstitutionMap
IdentitySubstitutionMapis a trivial implementation ofSubstitutionMapthat returns the key as the value for the requested key.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.common.css.SubstitutionMap
SubstitutionMap.Initializable
-
-
Constructor Summary
Constructors Constructor Description IdentitySubstitutionMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget(java.lang.String key)Gets the string that should be substituted forkey.
-
-
-
Method Detail
-
get
public java.lang.String get(java.lang.String key)
Description copied from interface:SubstitutionMapGets the string that should be substituted forkey. The same value must be consistently returned for any particularkey, and the returned value must not be returned for any otherkeyvalue.- Specified by:
getin interfaceSubstitutionMap- Parameters:
key- the text to be replaced (never null)- Returns:
- the value to substitute for
key
-
-