Class RegexReplace

java.lang.Object
org.jhotdraw8.base.text.RegexReplace

public class RegexReplace extends Object
Find - ReplaceAll regular expression.
Author:
Werner Randelshofer
  • Constructor Details

    • RegexReplace

      public RegexReplace()
    • RegexReplace

      public RegexReplace(@Nullable String find, @Nullable String replace)
  • Method Details

    • getFind

      public @Nullable String getFind()
    • getReplace

      public @Nullable String getReplace()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • apply

      public @Nullable String apply(@Nullable String str)
      Applies the regular expression to the string.
      Parameters:
      str - the string
      Returns:
      the replaced string
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object