Uses of Interface
net.time4j.tz.TransitionStrategy
Package
Description
Defines common interfaces for any format support of Time4J.
General timezone-API.
-
Uses of TransitionStrategy in net.time4j.format
Modifier and TypeFieldDescriptionstatic AttributeKey<TransitionStrategy>
Attributes.TRANSITION_STRATEGY
Attribute for the conflict strategy to be used in resolving ambivalent or invalid local timestamps. -
Uses of TransitionStrategy in net.time4j.tz
Modifier and TypeFieldDescriptionstatic TransitionStrategy
Timezone.DEFAULT_CONFLICT_STRATEGY
This standard strategy which is also used by the JDK-classjava.util.GregorianCalendar
subtracts the next defined offset from any local timestamp in order to calculate the global time while pushing forward an invalid local time.static TransitionStrategy
Timezone.STRICT_MODE
In addition to thestandard strategy
, this strategy ensures the use of valid local timestamps.Modifier and TypeMethodDescriptionGapResolver.and(OverlapResolver overlapResolver)
Yields a transition strategy as combination of given overlap resolver and this instance.OverlapResolver.and(GapResolver gapResolver)
Yields a transition strategy as combination of given gap resolver and this instance.abstract TransitionStrategy
Timezone.getStrategy()
Gets the strategy for resolving local timestamps.default TransitionStrategy
TransitionStrategy.using(OverlapResolver resolver)
Tries to change the overlap handling.Modifier and TypeMethodDescriptionabstract Timezone
Timezone.with(TransitionStrategy strategy)
Creates a copy of this timezone which uses given strategy for resolving local timestamps.