Resolvers class abstract
Commonly-used implementations of the delegates used in resolving a LocalDateTime to a ZonedDateTime, and a method to combine two 'partial' resolvers into a full one.
This class contains predefined implementations of ZoneLocalMappingResolver,
AmbiguousTimeResolver, and SkippedTimeResolver, along with
createMappingResolver, which produces a ZoneLocalMappingResolver
from instances of the
other two.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- lenientResolver → ZoneLocalMappingResolver
-
A ZoneLocalMappingResolver which never throws an exception due to ambiguity or skipped time.
final
- returnEarlier → AmbiguousTimeResolver
-
An AmbiguousTimeResolver which returns the earlier of the two matching times.
final
- returnEndOfIntervalBefore → SkippedTimeResolver
-
A SkippedTimeResolver which returns the final tick of the time zone interval
before the 'gap'.
final
- returnForwardShifted → SkippedTimeResolver
-
A SkippedTimeResolver which shifts values in the 'gap' forward by the duration
of the gap (which is usually 1 hour). This corresponds to the instant that would have occured,
had there not been a transition.
final
- returnLater → AmbiguousTimeResolver
-
An AmbiguousTimeResolver which returns the later of the two matching times.
final
- returnStartOfIntervalAfter → SkippedTimeResolver
-
A SkippedTimeResolver which returns the first tick of the time zone interval
after the 'gap'.
final
- strictResolver → ZoneLocalMappingResolver
-
A ZoneLocalMappingResolver which only ever succeeds in the (usual) case where the result
of the mapping is unambiguous.
final
- throwWhenAmbiguous → AmbiguousTimeResolver
-
An AmbiguousTimeResolver which simply throws an
AmbiguousTimeException
.final - throwWhenSkipped → SkippedTimeResolver
-
A SkippedTimeResolver which simply throws a
SkippedTimeException
.final
Static Methods
-
createMappingResolver(
AmbiguousTimeResolver ambiguousTimeResolver, SkippedTimeResolver skippedTimeResolver) → ZoneLocalMappingResolver -
Combines an
ambiguousTimeResolver
and a SkippedTimeResolver to create a ZoneLocalMappingResolver.