Arrays.AsList(Object[]) Method
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.
Returns a fixed-size list backed by the specified array.
[Android.Runtime.Register("asList", "([Ljava/lang/Object;)Ljava/util/List;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static System.Collections.IList AsList (params Java.Lang.Object[] a);
[<Android.Runtime.Register("asList", "([Ljava/lang/Object;)Ljava/util/List;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member AsList : Java.Lang.Object[] -> System.Collections.IList
Parameters
- a
- Object[]
the array by which the list will be backed
Returns
a list view of the specified array
- Attributes
Remarks
Returns a fixed-size list backed by the specified array. Changes made to the array will be visible in the returned list, and changes made to the list will be visible in the array. The returned list is Serializable
and implements RandomAccess
.
The returned list implements the optional Collection
methods, except those that would change the size of the returned list. Those methods leave the list unchanged and throw UnsupportedOperationException
.
Java documentation for java.util.Arrays.asList(T...)
.
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.