Dela via


Range.Intersect Method

Definition

Overloads

Intersect(Range)

Returns the intersection of this range and another range.

Intersect(Object, Object)

Returns the intersection of this range and the inclusive range specified by [lower, upper].

Intersect(Range)

Returns the intersection of this range and another range.

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

Parameters

range
Range

a non-nullRange<T> reference

Returns

the intersection of this range and the other range.

Attributes

Remarks

Returns the intersection of this range and another range.

E.g. if a < b < c < d, the intersection of [a, c] and [b, d] ranges is [b, c]. 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 intersection of [a, b] and [a', c] ranges could be either [a, b] or ['a, b], where [a, b] could be either the exact input range, or a newly created range with the same endpoints.

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

Intersect(Object, Object)

Returns the intersection of this range and the inclusive range specified by [lower, upper].

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

Parameters

lower
Object

a non-nullT reference

upper
Object

a non-nullT reference

Returns

the intersection of this range and the other range

Attributes

Remarks

Returns the intersection of this range and the inclusive range specified by [lower, upper].

See #intersect(Range) for more details.

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