public abstract class AbstractVersionIdentifierFormatterString extends AbstractFormatter<VersionIdentifier>
Formatter for a String -based
part of the VersionIdentifier.ComposedVersionIdentifierFormatter| Modifier and Type | Field and Description |
|---|---|
private int |
maximumLength
The maximum number of letters for the
String to format. |
private String |
prefix
The static prefix.
|
| Constructor and Description |
|---|
AbstractVersionIdentifierFormatterString(String prefix,
int maximumLength)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFormat(VersionIdentifier value,
Appendable buffer) |
protected abstract String |
getString(VersionIdentifier value)
This method gets the
String to format. |
format, format, formatNullprivate final String prefix
private final int maximumLength
String to format.public AbstractVersionIdentifierFormatterString(String prefix, int maximumLength)
prefix - is the static prefix to append before the number. Will be omitted if the number is null.maximumLength - is the maximum number of letters for the String to format. The default is
Integer.MAX_VALUE.protected abstract String getString(VersionIdentifier value)
String to format.value - is the VersionIdentifier.String to format.protected void doFormat(VersionIdentifier value, Appendable buffer) throws IOException
doFormat in class AbstractFormatter<VersionIdentifier>value - is the value to format (not null).buffer - is the Appendable to append the formatted value to.IOException - if caused by append.AbstractFormatter.format(Object, Appendable)Copyright © 2001–2016 mmm-Team. All rights reserved.