Example usage for Java org.apache.commons.text StrSubstitutor fields, constructors, methods, implement or subclass
The text is from its open source code.
StrSubstitutor(final Map Creates a new instance and initializes it. | |
StrSubstitutor(final StrLookup> variableResolver) Creates a new instance and initializes it. |
String | replace(final String source) Replaces all the occurrences of variables with their matching values from the resolver using the given source string as a template. |
String | replace(final char[] source) Replaces all the occurrences of variables with their matching values from the resolver using the given source array as a template. |
String | replace(final StringBuffer source) Replaces all the occurrences of variables with their matching values from the resolver using the given source buffer as a template. |
String | replace(final CharSequence source) Replaces all the occurrences of variables with their matching values from the resolver using the given source as a template. |
String | replace(final StrBuilder source) Replaces all the occurrences of variables with their matching values from the resolver using the given source builder as a template. |
String | replace(final Object source) Replaces all the occurrences of variables in the given source object with their matching values from the resolver. |