Class RecordingSubstitutionMap

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String get​(java.lang.String key)
      Gets the string that should be substituted for key.
      java.util.Map<java.lang.String,​java.lang.String> getMappings()  
      void initializeWithMappings​(java.util.Map<? extends java.lang.String,​? extends java.lang.String> newMappings)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public java.lang.String get​(java.lang.String key)
        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
        Throws:
        java.lang.NullPointerException - if key is null.