public class VersionIdentifierFormatterTimestamp extends AbstractVersionIdentifierFormatterString
Modifier and Type | Field and Description |
---|---|
private DateFormat |
dateFormat
The
DateFormat to use. |
private Iso8601Util |
iso8601Util
The
Iso8601Util instance. |
Constructor and Description |
---|
VersionIdentifierFormatterTimestamp(Iso8601Util iso8601Util,
DateFormat dateFormat,
String prefix)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getString(VersionIdentifier value)
This method gets the
String to format. |
doFormat
format, format, formatNull
private Iso8601Util iso8601Util
Iso8601Util
instance.private DateFormat dateFormat
DateFormat
to use.public VersionIdentifierFormatterTimestamp(Iso8601Util iso8601Util, DateFormat dateFormat, String prefix)
iso8601Util
- is the Iso8601Util
instance. May be null
is dateFormat
is given.dateFormat
- is the DateFormat
to use. If null
iso8601Util
will be used instead.prefix
- is the static prefix to append before the timestamp
. Will be
omitted if timestamp
is null
.protected String getString(VersionIdentifier value)
AbstractVersionIdentifierFormatterString
String
to format.getString
in class AbstractVersionIdentifierFormatterString
value
- is the VersionIdentifier
.String
to format.Copyright © 2001–2016 mmm-Team. All rights reserved.