public class VersionIdentifierFormatterPhaseNumber extends AbstractVersionIdentifierFormatterNumber
Formatter
for the
phase number
.Constructor and Description |
---|
VersionIdentifierFormatterPhaseNumber(StringUtil stringUtil,
String prefix,
int phaseNumberPadding)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Number |
getNumber(VersionIdentifier value)
This method gets the
Number to format. |
doFormat
format, format, formatNull
public VersionIdentifierFormatterPhaseNumber(StringUtil stringUtil, String prefix, int phaseNumberPadding)
stringUtil
- is the StringUtil
instance.prefix
- is the static prefix to append before the phase number
.
Will be omitted if phase number
is null
.phaseNumberPadding
- is the padding (minimum number of digits) for the
phase number
. The default is 0
.protected Number getNumber(VersionIdentifier value)
AbstractVersionIdentifierFormatterNumber
Number
to format.getNumber
in class AbstractVersionIdentifierFormatterNumber
value
- is the VersionIdentifier
.Number
to format.Copyright © 2001–2016 mmm-Team. All rights reserved.