Range(Object, Object) Constructor

Definition

Create a new immutable range.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Comparable;Ljava/lang/Comparable;)V", "")]
public Range (Java.Lang.Object? lower, Java.Lang.Object? upper);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Comparable;Ljava/lang/Comparable;)V", "")>]
new Android.Util.Range : Java.Lang.Object * Java.Lang.Object -> Android.Util.Range

Parameters

lower
Object

The lower endpoint (inclusive)

upper
Object

The upper endpoint (inclusive)

Attributes

Remarks

Create a new immutable range.

The endpoints are [lower, upper]; that is the range is bounded. lower must be Comparable#compareTo lesser or equal to upper.

Java documentation for android.util.Range.Range(T, T).

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