IList IList Interface


A List is a collection which maintains an ordering for its elements.

[Android.Runtime.Register("java/util/List", "", "Java.Util.IListInvoker", ApiSince=1)]
[Java.Interop.JavaTypeParameters(new System.String[] { "E" })]
public interface IList : IDisposable, Java.Util.ICollection
type IList = interface
    interface ICollection
    interface IIterable
    interface IJavaObject
    interface IDisposable


Android platform documentation

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.


Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsEmpty IsEmpty

Returns whether this List contains no elements.


Add(Int32, Object) Add(Int32, Object)
Add(Object) Add(Object)
AddAll(ICollection) AddAll(ICollection)
AddAll(Int32, ICollection) AddAll(Int32, ICollection)
Clear() Clear()

Removes all elements from this List, leaving it empty.

Contains(Object) Contains(Object)

Tests whether this List contains the specified object.

ContainsAll(ICollection) ContainsAll(ICollection)
Equals(Object) Equals(Object)

Compares the given object with the List, and returns true if they represent the same object using a class specific comparison.

Get(Int32) Get(Int32)

Returns the element at the specified location in this List.

GetHashCode() GetHashCode()

Returns the hash code for this List.

IndexOf(Object) IndexOf(Object)

Searches this List for the specified object and returns the index of the first occurrence.

Iterator() Iterator()

Returns an iterator on the elements of this List.

LastIndexOf(Object) LastIndexOf(Object)

Searches this List for the specified object and returns the index of the last occurrence.

ListIterator() ListIterator()

Returns a List iterator on the elements of this List.

ListIterator(Int32) ListIterator(Int32)

Returns a list iterator on the elements of this List.

Remove(Int32) Remove(Int32)

Removes the object at the specified location from this List.

Remove(Object) Remove(Object)

Removes the first occurrence of the specified object from this List.

RemoveAll(ICollection) RemoveAll(ICollection)
RetainAll(ICollection) RetainAll(ICollection)
Set(Int32, Object) Set(Int32, Object)
Size() Size()

Returns the number of elements in this List.

SubList(Int32, Int32) SubList(Int32, Int32)

Returns a List of the specified portion of this List from the given start index to the end index minus one.

ToArray() ToArray()

Returns an array containing all elements contained in this List.

ToArray(Object[]) ToArray(Object[])

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
ToEnumerable(IIterable) ToEnumerable(IIterable)
ToEnumerable<T>(IIterable) ToEnumerable<T>(IIterable)

Applies to