Export (0) Print
Expand All

List Members (J#)

Visual Studio 2005

An interface that represents an ordered collection of elements.

The following tables list the members exposed by the List type.

Public Methods

Name Description

add

Overloaded.  

addAll

Overloaded.  

clear

Removes all the elements from a List object.

contains

Checks if a List object contains a specific element.

containsAll

Checks if a List object contains all the elements of a collection.

equals

Checks if a List object is equal to a specific object.

get

Retrieves an element from a List at a specified index.

hashCode

Retrieves the hash code of a List.object.

indexOf

Retrieves the index of a specific element in a List.object.

isEmpty

Checks if a java.util.List object is empty.

iterator

Provides an iterator to iterate over a List object.

lastIndexOf

Retrieves the last index a specific element has possessed when it was last added to List object.

listIterator

Overloaded.  

remove

Overloaded.  

removeAll

Deletes all the elements from a List object that exist is a specified collection.

retainAll

Deletes the elements of the current List collection that do not exist in specified collection object.

set

Changes the contents of an existing element at the specified index in a List object.

size

Retrieves the number of elements in a List object.

subList

Creates a sub list from the elements that exist within a specified index range in a List object.

toArray

Overloaded.  

See Also

Community Additions

ADD
Show:
© 2014 Microsoft