Package proguard.util

Class SuffixRemovingStringFunction

  • All Implemented Interfaces:
    StringFunction

    public class SuffixRemovingStringFunction
    extends java.lang.Object
    implements StringFunction
    This StringFunction removes a given suffix from each transformed String, if present.
    • Constructor Summary

      Constructors 
      Constructor Description
      SuffixRemovingStringFunction​(java.lang.String suffix)
      Creates a new SuffixRemovingStringFunction.
    • 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

      • SuffixRemovingStringFunction

        public SuffixRemovingStringFunction​(java.lang.String suffix)
        Creates a new SuffixRemovingStringFunction.
        Parameters:
        suffix - the suffix to remove from each string.
    • 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