Udostępnij za pośrednictwem


ValueRange.IsValidIntValue(Int64) Method

Definition

Checks if the value is within the valid range and that all values in the range fit in an int.

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

Parameters

value
Int64

the value to check

Returns

true if the value is valid and fits in an int

Attributes

Remarks

Checks if the value is within the valid range and that all values in the range fit in an int.

This method combines #isIntValue() and #isValidValue(long).

Java documentation for java.time.temporal.ValueRange.isValidIntValue(.*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