言語

List.CopyOf(ICollection) メソッド

定義

注意事項

Use 'Java.Util.IList.CopyOf'. This class will be removed in a future release.

指定されたコレクションの要素を反復処理の順序で含む変更不可能なリストを返します。

[Android.Runtime.Register("copyOf", "(Ljava/util/Collection;)Ljava/util/List;", "", ApiSince=31)]
[Java.Interop.JavaTypeParameters(new System.String[] { "E" })]
[System.Obsolete("Use 'Java.Util.IList.CopyOf'. This class will be removed in a future release.")]
public static System.Collections.IList CopyOf(System.Collections.ICollection coll);
[<Android.Runtime.Register("copyOf", "(Ljava/util/Collection;)Ljava/util/List;", "", ApiSince=31)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "E" })>]
[<System.Obsolete("Use 'Java.Util.IList.CopyOf'. This class will be removed in a future release.")>]
static member CopyOf : System.Collections.ICollection -> System.Collections.IList

パラメーター

coll
ICollection

要素が描画される Collection は null 以外である必要があります

返品

指定された要素を含むListCollection

属性

注釈

指定されたコレクションの要素を反復処理の順序で含む変更不可能なリストを返します。 指定されたコレクションは null にすることはできません。また、null 要素を含めてはなりません。 指定されたコレクションが後で変更された場合、返されるリストはそのような変更を反映しません。

10 に追加されました。

Javaドキュメント。

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

適用対象