Android Guides | Samples

Java.Util.IList

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

See Also: IList

Syntax

[Android.Runtime.Register("java/util/List", "", "Java.Util.IListInvoker")]
public interface IList : ICollection, IDisposable

Remarks

A List is a collection which maintains an ordering for its elements. Every element in the List has an index. Each element can thus be accessed by its index, with the first index being zero. Normally, Lists allow duplicate elements, as compared to Sets, where elements have to be unique.

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Util.IList are listed below.

Public Properties

[read-only]
IsEmptyBoolean. Returns whether this List contains no elements.

Public Methods

Add(Object) : Boolean
Add(Int32, Object)
AddAll(ICollection) : Boolean
AddAll(Int32, ICollection) : Boolean
Clear()
Removes all elements from this List, leaving it empty.
Contains(Object) : Boolean
Tests whether this List contains the specified object.
ContainsAll(ICollection) : Boolean
Equals(Object) : Boolean
Compares the given object with the List, and returns true if they represent the same object using a class specific comparison.
Get(Int32) : Object
Returns the element at the specified location in this List.
GetHashCode() : Int32
Returns the hash code for this List.
IndexOf(Object) : Int32
Searches this List for the specified object and returns the index of the first occurrence.
Iterator() : IIterator
Returns an iterator on the elements of this List.
LastIndexOf(Object) : Int32
Searches this List for the specified object and returns the index of the last occurrence.
ListIterator() : IListIterator
Returns a List iterator on the elements of this List.
ListIterator(Int32) : IListIterator
Returns a list iterator on the elements of this List.
Remove(Object) : Boolean
Removes the first occurrence of the specified object from this List.
Remove(Int32) : Object
Removes the object at the specified location from this List.
RemoveAll(ICollection) : Boolean
RetainAll(ICollection) : Boolean
Set(Int32, Object) : Object
Size() : Int32
Returns the number of elements in this List.
SubList(Int32, Int32) : IList
Returns a List of the specified portion of this List from the given start index to the end index minus one.
ToArray() : Object[]
Returns an array containing all elements contained in this List.
ToArray(Object[]) : Object[]