Class PatternReplacementMap

java.lang.Object
com.mchange.v2.util.PatternReplacementMap

public final class PatternReplacementMap extends Object
  • Constructor Details

    • PatternReplacementMap

      public PatternReplacementMap()
  • Method Details

    • addMapping

      public void addMapping(Pattern pattern, String replacement)
    • removeMapping

      public void removeMapping(Pattern pattern)
    • patterns

      public Iterator patterns()
    • size

      public int size()
    • attemptReplace

      public String attemptReplace(String testString)
      Returns:
      null if there was no match, designated replacement otherwise.