![JAR search and dependency download from the Maven repository](/logo.png)
org.cthul.strings.FormatMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cthul-strings Show documentation
Show all versions of cthul-strings Show documentation
Functions for converting strings from and to various formats,
such as roman numbers, alpha indices, Java identifiers,
and format strings.
The newest version!
package org.cthul.strings;
import java.util.List;
import java.util.regex.Matcher;
import org.cthul.strings.format.*;
/**
* A {@link FormatPattern}, applied to a string.
*
* @author Arian Treffer
*/
public class FormatMatcher {
private final FormatPattern pattern;
private final Matcher matcher;
private final PatternData data;
protected FormatMatcher(FormatPattern pattern, Matcher matcher, PatternData data) {
this.pattern = pattern;
this.matcher = matcher;
this.data = data;
}
public FormatPattern pattern() {
return pattern;
}
/**
* Matches the entire input and returns a list of extracted values.
* @return list of values, or null if match failed
*/
public List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy