Share via


Pair.Create(Object, Object) Method

Definition

Convenience method for creating an appropriately typed pair.

[Android.Runtime.Register("create", "(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "A", "B" })]
public static Android.Util.Pair? Create (Java.Lang.Object? a, Java.Lang.Object? b);
[<Android.Runtime.Register("create", "(Ljava/lang/Object;Ljava/lang/Object;)Landroid/util/Pair;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "A", "B" })>]
static member Create : Java.Lang.Object * Java.Lang.Object -> Android.Util.Pair

Parameters

a
Object

the first object in the Pair

b
Object

the second object in the pair

Returns

a Pair that is templatized with the types of a and b

Attributes

Remarks

Convenience method for creating an appropriately typed pair.

Java documentation for android.util.Pair.create(A, B).

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