Class NormalizeCharMap.Builder

  • Enclosing class:
    NormalizeCharMap

    public static class NormalizeCharMap.Builder
    extends java.lang.Object
    Builds an NormalizeCharMap.

    Call add() until you have added all the mappings, then call build() to get a NormalizeCharMap

    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • add

        public void add​(java.lang.String match,
                        java.lang.String replacement)
        Records a replacement to be applied to the input stream. Whenever singleMatch occurs in the input, it will be replaced with replacement.
        Parameters:
        match - input String to be replaced
        replacement - output String
        Throws:
        java.lang.IllegalArgumentException - if match is the empty string, or was already previously added