CopyOnWriteArrayList Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CopyOnWriteArrayList() |
Creates an empty list. |
CopyOnWriteArrayList(Object[]) |
Creates a list holding a copy of the given array. |
CopyOnWriteArrayList(ICollection) |
Creates a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
CopyOnWriteArrayList(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
CopyOnWriteArrayList()
Creates an empty list.
[Android.Runtime.Register(".ctor", "()V", "")]
public CopyOnWriteArrayList ();
- Attributes
Remarks
Creates an empty list.
Java documentation for java.util.concurrent.CopyOnWriteArrayList.CopyOnWriteArrayList()
.
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
CopyOnWriteArrayList(Object[])
Creates a list holding a copy of the given array.
[Android.Runtime.Register(".ctor", "([Ljava/lang/Object;)V", "")]
public CopyOnWriteArrayList (Java.Lang.Object[] toCopyIn);
[<Android.Runtime.Register(".ctor", "([Ljava/lang/Object;)V", "")>]
new Java.Util.Concurrent.CopyOnWriteArrayList : Java.Lang.Object[] -> Java.Util.Concurrent.CopyOnWriteArrayList
Parameters
- toCopyIn
- Object[]
the array (a copy of this array is used as the internal array)
- Attributes
Remarks
Creates a list holding a copy of the given array.
Java documentation for java.util.concurrent.CopyOnWriteArrayList.CopyOnWriteArrayList(E[])
.
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
CopyOnWriteArrayList(ICollection)
Creates a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
[Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")]
public CopyOnWriteArrayList (System.Collections.ICollection c);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Collection;)V", "")>]
new Java.Util.Concurrent.CopyOnWriteArrayList : System.Collections.ICollection -> Java.Util.Concurrent.CopyOnWriteArrayList
Parameters
the collection of initially held elements
- Attributes
Remarks
Creates a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
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
CopyOnWriteArrayList(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected CopyOnWriteArrayList (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Util.Concurrent.CopyOnWriteArrayList : nativeint * Android.Runtime.JniHandleOwnership -> Java.Util.Concurrent.CopyOnWriteArrayList
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
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.