public abstract class TransitionModel extends java.lang.Object implements TransitionHistory, java.io.Serializable
Factory class for creating zonal transition histories.
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Determines if this history does not have any transitions.
|
static TransitionHistory |
of(java.util.List<ZonalTransition> transitions)
Creates a new array-based and finite transition history.
|
static TransitionHistory |
of(ZonalOffset standardOffset,
java.util.List<DaylightSavingRule> rules)
Creates a new rule-based transition history.
|
static TransitionHistory |
of(ZonalOffset initialOffset,
java.util.List<ZonalTransition> transitions,
java.util.List<DaylightSavingRule> rules)
Creates a transition history of both history transitions and
rules for future transitions as well.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdump, getConflictTransition, getInitialOffset, getNextTransition, getStartTransition, getStdTransitions, getTransitions, getValidOffsetspublic static TransitionHistory of(java.util.List<ZonalTransition> transitions)
Creates a new array-based and finite transition history.
transitions - list of zonal transitionsjava.lang.IllegalArgumentException - in any case of inconsistencies
or if there are no transitions at allpublic static TransitionHistory of(ZonalOffset standardOffset, java.util.List<DaylightSavingRule> rules)
Creates a new rule-based transition history.
standardOffset - standard offsetrules - list of daylight saving rulesjava.lang.IllegalArgumentException - in any case of inconsistencies
or if there are more than 127 rulespublic static TransitionHistory of(ZonalOffset initialOffset, java.util.List<ZonalTransition> transitions, java.util.List<DaylightSavingRule> rules)
Creates a transition history of both history transitions and rules for future transitions as well.
initialOffset - initial offsettransitions - list of zonal transitionsrules - list of daylight saving rulesjava.lang.IllegalArgumentException - in any case of inconsistencies
or if there are more than 127 rulespublic boolean isEmpty()
TransitionHistoryDetermines if this history does not have any transitions.
isEmpty in interface TransitionHistorytrue if there are no transitions else false