Package 

Interface Replaceable


  • 
    public interface Replaceable
    
                        

    Interface used to support find and replacement feature

    • Method Summary

      Modifier and Type Method Description
      abstract void replaceFirstMatch(String regex, String replacement) Replace the first string that matched by the regex with new string
      abstract void replaceAllMatches(String regex, String replacement) Replace all strings that matched by the regex with new string
      • Methods inherited from class java.lang.Object

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

      • replaceFirstMatch

         abstract void replaceFirstMatch(String regex, String replacement)

        Replace the first string that matched by the regex with new string

        Parameters:
        regex - regex Regex used to find the first target string
        replacement - Text to replace that matched string by it
      • replaceAllMatches

         abstract void replaceAllMatches(String regex, String replacement)

        Replace all strings that matched by the regex with new string

        Parameters:
        regex - Regex used to find the target string
        replacement - Text to replace that matched string by it