public abstract class TransitionModel extends Object implements TransitionHistory, Serializable
Factory class for creating zonal transition histories.
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNegativeDST()
This method is only a performance indicator and determines if negative daylight savings
exist at all in this model.
|
boolean |
isEmpty()
Determines if this history does not have any transitions.
|
static TransitionHistory |
of(List<ZonalTransition> transitions)
Creates a new array-based and finite transition history.
|
static TransitionHistory |
of(ZonalOffset standardOffset,
List<DaylightSavingRule> rules)
Creates a new rule-based transition history.
|
static TransitionHistory |
of(ZonalOffset initialOffset,
List<ZonalTransition> transitions,
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, findConflictTransition, findNextTransition, findPreviousTransition, findStartTransition, getConflictTransition, getInitialOffset, getStartTransition, getStdTransitions, getTransitions, getValidOffsetspublic static TransitionHistory of(List<ZonalTransition> transitions)
Creates a new array-based and finite transition history.
transitions - list of zonal transitionsIllegalArgumentException - in any case of inconsistencies
or if there are no transitions at allpublic static TransitionHistory of(ZonalOffset standardOffset, List<DaylightSavingRule> rules)
Creates a new rule-based transition history.
standardOffset - standard offsetrules - list of daylight saving rulesIllegalArgumentException - in any case of inconsistencies
or if there are more than 127 rulespublic static TransitionHistory of(ZonalOffset initialOffset, List<ZonalTransition> transitions, 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 rulesIllegalArgumentException - 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 falsepublic boolean hasNegativeDST()
This method is only a performance indicator and determines if negative daylight savings exist at all in this model.
The standard implementation obtains the value false.
Copyright © 2014–2021. All rights reserved.