言語

JSONArray.OptBoolean メソッド

定義

オーバーロード

名前 説明
OptBoolean(Int32)

存在し、ブール値の場合、またはブール値に強制変換できる場合は、 index の値を返します。

OptBoolean(Int32, Boolean)

存在し、ブール値の場合、またはブール値に強制変換できる場合は、 index の値を返します。

OptBoolean(Int32)

存在し、ブール値の場合、またはブール値に強制変換できる場合は、 index の値を返します。

[Android.Runtime.Register("optBoolean", "(I)Z", "GetOptBoolean_IHandler")]
public virtual bool OptBoolean(int index);
[<Android.Runtime.Register("optBoolean", "(I)Z", "GetOptBoolean_IHandler")>]
abstract member OptBoolean : int -> bool
override this.OptBoolean : int -> bool

パラメーター

index
Int32

返品

属性

注釈

存在し、ブール値の場合、またはブール値に強制変換できる場合は、 index の値を返します。 それ以外の場合は、false を返します。

Javaドキュメント。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

適用対象

OptBoolean(Int32, Boolean)

存在し、ブール値の場合、またはブール値に強制変換できる場合は、 index の値を返します。

[Android.Runtime.Register("optBoolean", "(IZ)Z", "GetOptBoolean_IZHandler")]
public virtual bool OptBoolean(int index, bool fallback);
[<Android.Runtime.Register("optBoolean", "(IZ)Z", "GetOptBoolean_IZHandler")>]
abstract member OptBoolean : int * bool -> bool
override this.OptBoolean : int * bool -> bool

パラメーター

index
Int32
fallback
Boolean

返品

属性

注釈

存在し、ブール値の場合、またはブール値に強制変換できる場合は、 index の値を返します。 それ以外の場合は fallback を返します。

Javaドキュメント。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

適用対象