Class IdentitySubstitutionMap

java.lang.Object
com.google.common.css.IdentitySubstitutionMap
All Implemented Interfaces:
SubstitutionMap

public class IdentitySubstitutionMap extends Object implements SubstitutionMap
IdentitySubstitutionMap is a trivial implementation of SubstitutionMap that returns the key as the value for the requested key.
  • Constructor Details

    • IdentitySubstitutionMap

      public IdentitySubstitutionMap()
  • Method Details

    • get

      public String get(String key)
      Description copied from interface: SubstitutionMap
      Gets the string that should be substituted for key. The same value must be consistently returned for any particular key, and the returned value must not be returned for any other key value.
      Specified by:
      get in interface SubstitutionMap
      Parameters:
      key - the text to be replaced (never null)
      Returns:
      the value to substitute for key