Class DefaultingTemporalAccessor

java.lang.Object
org.apache.juneau.swaps.DefaultingTemporalAccessor
All Implemented Interfaces:
TemporalAccessor

public class DefaultingTemporalAccessor extends Object implements TemporalAccessor
Wraps a TemporalAccessor to provide default values wherever possible instead of throwing unsupported field exceptions.

If working correctly, any TemporalAccessor returned by the DateTimeFormatter.parse(CharSequence) method should be able to be passed to any Temporal.from(TemporalAccessor) static method (such as ZonedDateTime.from(TemporalAccessor)).

See Also: