Package net.time4j.tz
Enum Class OverlapResolver
- All Implemented Interfaces:
Serializable
,Comparable<OverlapResolver>
,java.lang.constant.Constable
Represents the component of a transition strategy how to handle overlaps on the local timeline.
- Since:
- 2.2
- Author:
- Meno Hochschild
- See Also:
GapResolver
,TransitionStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionStrategy which selects the earlier offset before a transition where the local time is ambivalent due to an overlap on the local timeline.Default strategy which selects the later offset after a transition where the local time is ambivalent due to an overlap on the local timeline. -
Method Summary
Modifier and TypeMethodDescriptionand(GapResolver gapResolver)
Yields a transition strategy as combination of given gap resolver and this instance.static OverlapResolver
Returns the enum constant of this class with the specified name.static OverlapResolver[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
EARLIER_OFFSET
Strategy which selects the earlier offset before a transition where the local time is ambivalent due to an overlap on the local timeline.
-
LATER_OFFSET
Default strategy which selects the later offset after a transition where the local time is ambivalent due to an overlap on the local timeline.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
and
Yields a transition strategy as combination of given gap resolver and this instance.
- Parameters:
gapResolver
- strategy how to handle gaps on the local timeline- Returns:
- transition strategy for handling gaps and overlaps
- Since:
- 2.2
- See Also:
GapResolver.and(OverlapResolver)
-