Package com.google.common.css
Interface SubstitutionMap
-
- All Known Subinterfaces:
MultipleMappingSubstitutionMap,SubstitutionMap.Initializable
- All Known Implementing Classes:
IdentitySubstitutionMap,MinimalSubstitutionMap,PrefixingSubstitutionMap,RecordingSubstitutionMap,SimpleSplittingSubstitutionMap,SimpleSubstitutionMap,SplittingSubstitutionMap
public interface SubstitutionMapAn interface for a one-to-one string mapping function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceSubstitutionMap.InitializableA substitution map that can be reconsitituted from saved mappings.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Stringget(java.lang.String key)Gets the string that should be substituted forkey.
-
-
-
Method Detail
-
get
java.lang.String get(java.lang.String key)
Gets 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.- Parameters:
key- the text to be replaced (never null)- Returns:
- the value to substitute for
key
-
-