Checks if the specified field is supported.
This checks if the date-time can be queried for the specified field.
If false, then calling the range
and get
methods will throw an exception.
field | the field to check, null returns false |
@implSpec
Implementations must check and handle all fields defined in ChronoField
.
If the field is supported, then true must be returned, otherwise false must be returned.
If the field is not a ChronoField
, then the result of this method
is obtained by invoking TemporalField.isSupportedBy(TemporalAccessor)
passing this
as the argument.
Implementations must ensure that no observable state is altered when this
read-only method is invoked.
Diagram: LocalTime