Freigeben über


IChronoLocalDate.ITemporalAccessor.IsSupported(ITemporalField) Method

Definition

Checks if the specified field is supported.

[Android.Runtime.Register("isSupported", "(Ljava/time/temporal/TemporalField;)Z", "GetIsSupported_Ljava_time_temporal_TemporalField_Handler:Java.Time.Chrono.IChronoLocalDate, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
override sealed bool ITemporalAccessor.IsSupported (Java.Time.Temporal.ITemporalField? field);
[<Android.Runtime.Register("isSupported", "(Ljava/time/temporal/TemporalField;)Z", "GetIsSupported_Ljava_time_temporal_TemporalField_Handler:Java.Time.Chrono.IChronoLocalDate, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Java.Time.Temporal.ITemporalAccessor.IsSupported : Java.Time.Temporal.ITemporalField -> bool
override this.Java.Time.Temporal.ITemporalAccessor.IsSupported : Java.Time.Temporal.ITemporalField -> bool

Parameters

field
ITemporalField

the field to check, null returns false

Returns

true if the field can be queried, false if not

Implements

Attributes

Remarks

Checks if the specified field is supported.

This checks if the specified field can be queried on this date. If false, then calling the #range(TemporalField) range, #get(TemporalField) get and #with(TemporalField, long) methods will throw an exception.

The set of supported fields is defined by the chronology and normally includes all ChronoField date fields.

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. Whether the field is supported is determined by the field.

Java documentation for java.time.chrono.ChronoLocalDate.isSupported(java.time.temporal.TemporalField).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to