public class GPIntervalFormatDateOffset
extends fr.cnes.genius.interval.GIntervalFormatAbstract
Constructor and Description |
---|
GPIntervalFormatDateOffset(GPDateOffsetField.GPOffsetFormat format,
fr.cnes.genius.unit.GUnit unit)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
format(Object object)
The object must be of Number type.
|
void |
update(GPDateOffsetField.GPOffsetFormat format,
fr.cnes.genius.unit.GUnit unit)
Update the class attributes.
|
public GPIntervalFormatDateOffset(GPDateOffsetField.GPOffsetFormat format, fr.cnes.genius.unit.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 fr.cnes.genius.interval.GIntervalFormatAbstract
public void update(GPDateOffsetField.GPOffsetFormat format, fr.cnes.genius.unit.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 © 2018. All rights reserved.