TemporalAccessor.isSupported

Checks if the specified field is supported. !(p) This checks if the date-time can be queried for the specified field. If false, then calling the {@link #range(TemporalField) range} and {@link #get(TemporalField) get} methods will throw an exception.

@implSpec Implementations must check and handle all fields defined _in {@link ChronoField}. If the field is supported, then true must be returned, otherwise false must be returned. !(p) If the field is not a {@code ChronoField}, then the result of this method is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)} passing {@code this} as the argument. !(p) Implementations must ensure that no observable state is altered when this read-only method is invoked.

@param field the field to check, null returns false @return true if this date-time can be queried for the field, false if not

interface TemporalAccessor
bool
isSupported

Meta