IList Interface
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.
An ordered collection (also known as a sequence).
[Android.Runtime.Register("java/util/List", "", "Java.Util.IListInvoker")]
[Java.Interop.JavaTypeParameters(new System.String[] { "E" })]
public interface IList : IDisposable, Java.Interop.IJavaPeerable, Java.Util.ICollection
[<Android.Runtime.Register("java/util/List", "", "Java.Util.IListInvoker")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "E" })>]
type IList = interface
interface ICollection
interface IIterable
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Derived
- Attributes
- Implements
Remarks
Java documentation for java.util.List
.
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.
Properties
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
IsEmpty |
Returns whether this |
JniIdentityHashCode | (Inherited from IJavaPeerable) |
JniManagedPeerState | (Inherited from IJavaPeerable) |
JniPeerMembers | (Inherited from IJavaPeerable) |
PeerReference | (Inherited from IJavaPeerable) |
Methods
Add(Int32, Object) |
Inserts the specified element at the specified position in this list (optional operation). |
Add(Object) |
Appends the specified element to the end of this list (optional operation). |
AddAll(ICollection) |
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). |
AddAll(Int32, ICollection) |
Inserts all of the elements in the specified collection into this list at the specified position (optional operation). |
Clear() |
Removes all of the elements from this list (optional operation). |
Contains(Object) |
Returns |
ContainsAll(ICollection) |
Returns |
CopyOf(ICollection) |
Returns an <a href="#unmodifiable">unmodifiable List</a> containing the elements of the given Collection, in its iteration order. |
Disposed() | (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() | (Inherited from IJavaPeerable) |
Equals(Object) |
Compares the specified object with this list for equality. |
Finalized() | (Inherited from IJavaPeerable) |
ForEach(IConsumer) |
Performs the given action for each element of the |
Get(Int32) |
Returns the element at the specified position in this list. |
GetHashCode() |
Returns the hash code value for this list. |
IndexOf(Object) |
Returns the index of the first occurrence of the specified element in this list, or -1 if this list does not contain the element. |
Iterator() |
Returns an iterator over the elements in this list in proper sequence. |
LastIndexOf(Object) |
Returns the index of the last occurrence of the specified element in this list, or -1 if this list does not contain the element. |
ListIterator() |
Returns a list iterator over the elements in this list (in proper sequence). |
ListIterator(Int32) |
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list. |
Of() |
Returns an unmodifiable list containing zero elements. |
Of(Object) |
Returns an unmodifiable list containing one element. |
Of(Object, Object) |
Returns an unmodifiable list containing two elements. |
Of(Object, Object, Object) |
Returns an unmodifiable list containing three elements. |
Of(Object, Object, Object, Object) |
Returns an unmodifiable list containing four elements. |
Of(Object, Object, Object, Object, Object) |
Returns an unmodifiable list containing five elements. |
Of(Object, Object, Object, Object, Object, Object) |
Returns an unmodifiable list containing six elements. |
Of(Object, Object, Object, Object, Object, Object, Object) |
Returns an unmodifiable list containing seven elements. |
Of(Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an unmodifiable list containing eight elements. |
Of(Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an unmodifiable list containing nine elements. |
Of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) |
Returns an unmodifiable list containing ten elements. |
Of(Object[]) |
Returns an unmodifiable list containing an arbitrary number of elements. |
Remove(Int32) |
Removes the element at the specified position in this list (optional operation). |
Remove(Object) |
Removes the first occurrence of the specified element from this list, if it is present (optional operation). |
RemoveAll(ICollection) |
Removes from this list all of its elements that are contained in the specified collection (optional operation). |
RemoveIf(IPredicate) |
Removes all of the elements of this collection that satisfy the given predicate. (Inherited from ICollection) |
ReplaceAll(IUnaryOperator) | |
RetainAll(ICollection) |
Retains only the elements in this list that are contained in the specified collection (optional operation). |
Set(Int32, Object) |
Replaces the element at the specified position in this list with the specified element (optional operation). |
SetJniIdentityHashCode(Int32) | (Inherited from IJavaPeerable) |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) | (Inherited from IJavaPeerable) |
Size() |
Returns the number of elements in this list. |
Sort(IComparator) |
Sorts this list according to the order induced by the specified
|
Spliterator() |
Creates a |
SubList(Int32, Int32) |
Returns a view of the portion of this list between the specified
|
ToArray() |
Returns an array containing all of the elements in this list in proper sequence (from first to last element). |
ToArray(Object[]) |
Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. |
UnregisterFromRuntime() | (Inherited from IJavaPeerable) |
Explicit Interface Implementations
IIterable.Spliterator() |
Creates a |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) | |
ToEnumerable(IIterable) | |
ToEnumerable<T>(IIterable) |