Class EqualsReplacementConverter

    • Method Detail

      • newInstance

        public static EqualsReplacementConverter newInstance​(Configuration config,
                                                             String[] options)
        Gets an instance of the class.
        Parameters:
        config - The current Configuration.
        options - pattern options, an array of three elements: pattern, testString, and substitution.
        Returns:
        instance of class.
      • equals

        protected boolean equals​(String str,
                                 StringBuilder buff,
                                 int from,
                                 int len)
        Description copied from class: EqualsBaseReplacementConverter
        Returns true if the specified String equals the specified section of the specified StringBuilder.
        Specified by:
        equals in class EqualsBaseReplacementConverter
        Parameters:
        str - the String to compare
        buff - the StringBuilder to compare a section of
        from - start index in the StringBuilder
        len - length of the section in the StringBuilder
        Returns:
        true if equal, false otherwise