![JAR search and dependency download from the Maven repository](/logo.png)
org.cthul.strings.format.PatternAPIWrapper 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;
/**
*
* @author Arian Treffer
*/
public class PatternAPIWrapper implements PatternAPI {
protected final PatternAPI base;
public PatternAPIWrapper(PatternAPI base) {
if (base == null) throw new NullPointerException();
this.base = base;
}
@Override
public PatternAPI append(char c) {
base.append(c);
return this;
}
@Override
public PatternAPI append(CharSequence csq) {
base.append(csq);
return this;
}
@Override
public PatternAPI append(CharSequence csq, int start, int end) {
base.append(csq, start, end);
return this;
}
@Override
public PatternAPI addedCapturingGroup() {
base.addedCapturingGroup();
return this;
}
@Override
public PatternAPI addedCapturingGroups(int i) {
base.addedCapturingGroups(i);
return this;
}
@Override
public Object putMemento(Object newMemento) {
base.putMemento(newMemento);
return this;
}
@Override
public PatternData parse(PatternAPI api, String format) {
return base.parse(api, format);
}
@Override
public PatternData parse(PatternAPI api, String format, int start, int end) {
return base.parse(api, format, start, end);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy