Share via


Range.Extend Method

Definition

Overloads

Extend(Range)

Returns the smallest range that includes this range and another range.

Extend(Object)

Returns the smallest range that includes this range and the value.

Extend(Object, Object)

Returns the smallest range that includes this range and the inclusive range specified by [lower, upper].

Extend(Range)

Returns the smallest range that includes this range and another range.

[Android.Runtime.Register("extend", "(Landroid/util/Range;)Landroid/util/Range;", "")]
public Android.Util.Range? Extend (Android.Util.Range? range);
[<Android.Runtime.Register("extend", "(Landroid/util/Range;)Landroid/util/Range;", "")>]
member this.Extend : Android.Util.Range -> Android.Util.Range

Parameters

range
Range

a non-nullRange<T> reference

Returns

the extension of this range and the other range.

Attributes

Remarks

Returns the smallest range that includes this range and another range.

E.g. if a < b < c < d, the extension of [a, c] and [b, d] ranges is [a, d]. As the endpoints are object references, there is no guarantee which specific endpoint reference is used from the input ranges:

E.g. if a == a' < b < c, the extension of [a, b] and [a', c] ranges could be either [a, c] or ['a, c], where ['a, c] could be either the exact input range, or a newly created range with the same endpoints.

Java documentation for android.util.Range.extend(android.util.Range<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

Extend(Object)

Returns the smallest range that includes this range and the value.

[Android.Runtime.Register("extend", "(Ljava/lang/Comparable;)Landroid/util/Range;", "")]
public Android.Util.Range? Extend (Java.Lang.Object? value);
[<Android.Runtime.Register("extend", "(Ljava/lang/Comparable;)Landroid/util/Range;", "")>]
member this.Extend : Java.Lang.Object -> Android.Util.Range

Parameters

value
Object

a non-nullT reference

Returns

the extension of this range and the value.

Attributes

Remarks

Returns the smallest range that includes this range and the value.

See #extend(Range) for more details, as this method is equivalent to extend(Range.create(value, value)).

Java documentation for android.util.Range.extend(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

Extend(Object, Object)

Returns the smallest range that includes this range and the inclusive range specified by [lower, upper].

[Android.Runtime.Register("extend", "(Ljava/lang/Comparable;Ljava/lang/Comparable;)Landroid/util/Range;", "")]
public Android.Util.Range? Extend (Java.Lang.Object? lower, Java.Lang.Object? upper);
[<Android.Runtime.Register("extend", "(Ljava/lang/Comparable;Ljava/lang/Comparable;)Landroid/util/Range;", "")>]
member this.Extend : Java.Lang.Object * Java.Lang.Object -> Android.Util.Range

Parameters

lower
Object

a non-nullT reference

upper
Object

a non-nullT reference

Returns

the extension of this range and the other range.

Attributes

Remarks

Returns the smallest range that includes this range and the inclusive range specified by [lower, upper].

See #extend(Range) for more details.

Java documentation for android.util.Range.extend(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