OptionalInt.IfPresent(IIntConsumer) メソッド

定義

値が存在する場合は、値を使用して指定されたアクションを実行し、それ以外の場合は何も実行しません。

[Android.Runtime.Register("ifPresent", "(Ljava/util/function/IntConsumer;)V", "", ApiSince=24)]
public void IfPresent (Java.Util.Functions.IIntConsumer? action);
[<Android.Runtime.Register("ifPresent", "(Ljava/util/function/IntConsumer;)V", "", ApiSince=24)>]
member this.IfPresent : Java.Util.Functions.IIntConsumer -> unit

パラメーター

action
IIntConsumer

値が存在する場合に実行されるアクション

属性

注釈

java.util.OptionalInt.ifPresent(java.util.function.IntConsumer)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象