![JAR search and dependency download from the Maven repository](/logo.png)
org.cthul.strings.format.PatternConfiguration 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.format;
import java.util.Locale;
import org.cthul.strings.format.pattern.RegexPattern;
/**
*
* @author Arian Treffer
*/
public class PatternConfiguration extends AbstractFormatConfiguration {
private static final PatternConfiguration DEFAULT = new PatternConfiguration(null);
public static PatternConfiguration getDefault() {
return DEFAULT;
}
static {
RegexPattern.INSTANCE.register(DEFAULT);
}
public PatternConfiguration() {
this(getDefault());
}
public PatternConfiguration(PatternConfiguration parent) {
super(parent, ConversionPattern.class);
}
@Override
public PatternConfiguration forLocale(Locale locale) {
return (PatternConfiguration) super.forLocale(locale);
}
@Override
public PatternConfiguration newSubconfiguration() {
return new PatternConfiguration(this);
}
@Override
protected ConversionPattern nullFormat() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy