Share via


ChronoField.CheckValidValue(Int64) Method

Definition

Checks that the specified value is valid for this field.

[Android.Runtime.Register("checkValidValue", "(J)J", "", ApiSince=26)]
public long CheckValidValue (long value);
[<Android.Runtime.Register("checkValidValue", "(J)J", "", ApiSince=26)>]
member this.CheckValidValue : int64 -> int64

Parameters

value
Int64

the value to check

Returns

the value that was passed in

Attributes

Remarks

Checks that the specified value is valid for this field.

This validates that the value is within the outer range of valid values returned by #range().

This method checks against the range of the field in the ISO-8601 calendar system. This range may be incorrect for other calendar systems. Use Chronology#range(ChronoField) to access the correct range for a different calendar system.

Java documentation for java.time.temporal.ChronoField.checkValidValue(long).

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