public class GIntervalFormatDuration extends GIntervalFormatAbstract
Constructor and Description |
---|
GIntervalFormatDuration()
Empty constructor.
|
GIntervalFormatDuration(GDateUtils.GDateFormat format,
GUnit unit)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
format(Object object)
Create the message from the value in the field.
|
void |
update(GDateUtils.GDateFormat format,
GUnit unit)
Update the class attributes.
|
public GIntervalFormatDuration()
public GIntervalFormatDuration(GDateUtils.GDateFormat format, GUnit unit)
format
- calendar or fractional for the interval edges to be shown in the messageunit
- current unit needed to determine the number of fractional digits for the interval edges to
be shown in the messagepublic String format(Object object)
format
in class GIntervalFormatAbstract
object
- the value of the field.public void update(GDateUtils.GDateFormat format, GUnit unit)
format
- calendar or fractional for the interval edges to be shown in the messageunit
- current unit needed to determine the number of fractional digits for the interval edges to
be shown in the messageCopyright © 2024. All rights reserved.