public interface SubPeriodPattern
TimePacker| Modifier and Type | Method and Description |
|---|---|
long |
adjustForSubPeriod(long time,
Adjustment adjust,
TimeParts timeParts)
Modify and return the numeric time index corresponding to the state of the
time parts argument.
|
TimeParts |
fillInSubPeriod(int subPeriod,
TimeParts timeParts)
Update the relevant field of the time parts argument for the given sub period
and return a modified copy.
|
Resolution |
getBasePeriod()
Return the base period resolution.
|
int |
getSize()
Return the number of sub periods.
|
Resolution |
getSubPeriod()
Return the sub period resolution.
|
int getSize()
Resolution getSubPeriod()
Resolution getBasePeriod()
long adjustForSubPeriod(long time,
Adjustment adjust,
TimeParts timeParts)
throws T2Exception
TimePacker.pack(TimeParts, Adjustment).time - a numeric time indexadjust - an allowed adjustment modetimeParts - a time parts object with the complete time specificationT2ExceptionTimeParts fillInSubPeriod(int subPeriod, TimeParts timeParts)
TimePacker.unpack(long).subPeriod - a positive numbertimeParts - a time parts object to be modifiedCopyright © 2017. All rights reserved.