Linguaggio

Optional.OrElse(Object) Metodo

Definizione

Se è presente un valore, restituisce il valore , in caso contrario restituisce other.

[Android.Runtime.Register("orElse", "(Ljava/lang/Object;)Ljava/lang/Object;", "", ApiSince=24)]
public Java.Lang.Object? OrElse(Java.Lang.Object? other);
[<Android.Runtime.Register("orElse", "(Ljava/lang/Object;)Ljava/lang/Object;", "", ApiSince=24)>]
member this.OrElse : Java.Lang.Object -> Java.Lang.Object

Parametri

other
Object

valore da restituire, se non è presente alcun valore. Può essere null.

Valori restituiti

il valore, se presente; in caso contrario, other

Attributi

Commenti

Se è presente un valore, restituisce il valore , in caso contrario restituisce other.

per java.util.Optional.orElse(T).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a