Partager via


ValueRange.IsIntValue Property

Definition

Checks if all values in the range fit in an int.

public bool IsIntValue { [Android.Runtime.Register("isIntValue", "()Z", "", ApiSince=26)] get; }
[<get: Android.Runtime.Register("isIntValue", "()Z", "", ApiSince=26)>]
member this.IsIntValue : bool

Property Value

true if a valid value always fits in an int

Attributes

Remarks

Checks if all values in the range fit in an int.

This checks that all valid values are within the bounds of an int.

For example, the ISO month-of-year has values from 1 to 12, which fits in an int. By comparison, ISO nano-of-day runs from 1 to 86,400,000,000,000 which does not fit in an int.

This implementation uses #getMinimum() and #getMaximum().

Java documentation for java.time.temporal.ValueRange.isIntValue().

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