Package proguard.util

Class MapStringFunction

    • Constructor Summary

      Constructors 
      Constructor Description
      MapStringFunction​(java.util.Map map)
      Creates a new MapStringFunction based on the given map.
      MapStringFunction​(java.util.Map map, java.lang.String defaultString)
      Creates a new MapStringFunction based on the given map, with a default string for strings that are not in the map.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String transform​(java.lang.String string)
      Transforms the given string into a new string.
      • Methods inherited from class java.lang.Object

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

      • MapStringFunction

        public MapStringFunction​(java.util.Map map)
        Creates a new MapStringFunction based on the given map.
      • MapStringFunction

        public MapStringFunction​(java.util.Map map,
                                 java.lang.String defaultString)
        Creates a new MapStringFunction based on the given map, with a default string for strings that are not in the map.
    • Method Detail

      • transform

        public java.lang.String transform​(java.lang.String string)
        Description copied from interface: StringFunction
        Transforms the given string into a new string.
        Specified by:
        transform in interface StringFunction