Package com.google.common.css
Class MinimalSubstitutionMap
java.lang.Object
com.google.common.css.MinimalSubstitutionMap
- All Implemented Interfaces:
SubstitutionMap,SubstitutionMap.Initializable
MinimalSubstitutionMap is a SubstitutionMap that renames CSS classes to the
shortest string possible.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.common.css.SubstitutionMap
SubstitutionMap.Initializable -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MinimalSubstitutionMap
public MinimalSubstitutionMap() -
MinimalSubstitutionMap
- Parameters:
outputValueBlacklist- A set of CSS class names that may not be returned as the output from a substitution lookup.
-
-
Method Details
-
get
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.- Specified by:
getin interfaceSubstitutionMap- Parameters:
key- the text to be replaced (never null)- Returns:
- the value to substitute for
key
-
initializeWithMappings
- Specified by:
initializeWithMappingsin interfaceSubstitutionMap.Initializable
-