@Plugin(name="equalsIgnoreCase", category="Converter") public final class EqualsIgnoreCaseReplacementConverter extends EqualsBaseReplacementConverter
LOGGER
CATEGORY
Modifier | Constructor and Description |
---|---|
private |
EqualsIgnoreCaseReplacementConverter(java.util.List<PatternFormatter> formatters,
java.lang.String testString,
java.lang.String substitution,
PatternParser parser)
Construct the converter.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
equals(java.lang.String str,
java.lang.StringBuilder buff,
int from,
int len)
Returns true if the specified String equals the specified section of the specified StringBuilder.
|
static EqualsIgnoreCaseReplacementConverter |
newInstance(Configuration config,
java.lang.String[] options)
Gets an instance of the class.
|
format, parseSubstitution
format, handlesThrowable, isVariable
getName, getStyleClass
private EqualsIgnoreCaseReplacementConverter(java.util.List<PatternFormatter> formatters, java.lang.String testString, java.lang.String substitution, PatternParser parser)
formatters
- The PatternFormatters to generate the text to manipulate.testString
- The test string.substitution
- The substitution string.parser
- The PatternParser.public static EqualsIgnoreCaseReplacementConverter newInstance(Configuration config, java.lang.String[] options)
config
- The current Configuration.options
- pattern options, an array of three elements: pattern, testString, and substitution.protected boolean equals(java.lang.String str, java.lang.StringBuilder buff, int from, int len)
EqualsBaseReplacementConverter
equals
in class EqualsBaseReplacementConverter
str
- the String to comparebuff
- the StringBuilder to compare a section offrom
- start index in the StringBuilderlen
- length of the section in the StringBuilder