Range.Create(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a new immutable range, with the argument types inferred.
[Android.Runtime.Register("create", "(Ljava/lang/Comparable;Ljava/lang/Comparable;)Landroid/util/Range;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.lang.Comparable<? super T>" })]
public static Android.Util.Range? Create (Java.Lang.Object? lower, Java.Lang.Object? upper);
[<Android.Runtime.Register("create", "(Ljava/lang/Comparable;Ljava/lang/Comparable;)Landroid/util/Range;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.lang.Comparable<? super T>" })>]
static member Create : Java.Lang.Object * Java.Lang.Object -> Android.Util.Range
Parameters
- lower
- Object
The lower endpoint (inclusive)
- upper
- Object
The upper endpoint (inclusive)
Returns
- Attributes
Remarks
Create a new immutable range, with the argument types inferred.
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.create(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.