Share via


Provider.GetOrDefault(Object, Object) Method

Definition

Added in 1.

[Android.Runtime.Register("getOrDefault", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetGetOrDefault_Ljava_lang_Object_Ljava_lang_Object_Handler", ApiSince=26)]
public virtual Java.Lang.Object? GetOrDefault (Java.Lang.Object? key, Java.Lang.Object? defaultValue);
[<Android.Runtime.Register("getOrDefault", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "GetGetOrDefault_Ljava_lang_Object_Ljava_lang_Object_Handler", ApiSince=26)>]
abstract member GetOrDefault : Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object
override this.GetOrDefault : Java.Lang.Object * Java.Lang.Object -> Java.Lang.Object

Parameters

key
Object
defaultValue
Object

Returns

Attributes

Remarks

Added in 1.8.

Java documentation for java.security.Provider.getOrDefault(java.lang.Object, java.lang.Object).

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