|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface List
List is a collection which maintains an ordering for its elements. Every element in the list has an index.
Method Summary | |
---|---|
void |
add(int location,
java.lang.Object object)
Inserts the specified object into this Vector at the specified location. |
boolean |
add(java.lang.Object object)
Adds the specified object at the end of this List. |
boolean |
addAll(Collection collection)
Adds the objects in the specified Collection to the end of this List. |
boolean |
addAll(int location,
Collection collection)
Inserts the objects in the specified Collection at the specified location in this List. |
void |
clear()
Removes all elements from this List, leaving it empty. |
boolean |
contains(java.lang.Object object)
Searches this List for the specified object. |
boolean |
containsAll(Collection collection)
Searches this List for all objects in the specified Collection. |
boolean |
equals(java.lang.Object object)
Compares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. |
java.lang.Object |
get(int location)
Answers the element at the specified location in this List. |
int |
hashCode()
Answers an integer hash code for the receiver. |
int |
indexOf(java.lang.Object object)
Searches this List for the specified object and returns the index of the first occurrence. |
boolean |
isEmpty()
Answers if this List has no elements, a size of zero. |
Iterator |
iterator()
Answers an Iterator on the elements of this List. |
int |
lastIndexOf(java.lang.Object object)
Searches this List for the specified object and returns the index of the last occurrence. |
ListIterator |
listIterator()
Answers a ListIterator on the elements of this List. |
ListIterator |
listIterator(int location)
Answers a ListIterator on the elements of this List. |
java.lang.Object |
remove(int location)
Removes the object at the specified location from this List. |
boolean |
remove(java.lang.Object object)
Removes the first occurrence of the specified object from this List. |
boolean |
removeAll(Collection collection)
Removes all occurrences in this List of each object in the specified Collection. |
boolean |
retainAll(Collection collection)
Removes all objects from this List that are not contained in the specified Collection. |
java.lang.Object |
set(int location,
java.lang.Object object)
Replaces the element at the specified location in this List with the specified object. |
int |
size()
Answers the number of elements in this List. |
List |
subList(int start,
int end)
Answers a List of the specified portion of this List from the start index to one less than the end index. |
java.lang.Object[] |
toArray()
Answers an array containing all elements contained in this List. |
Methods inherited from interface oracle.adfnmc.java.util.Collection |
---|
toArray |
Method Detail |
---|
void add(int location, java.lang.Object object)
location
- the index at which to insertobject
- the object to add
java.lang.UnsupportedOperationException
- when adding to this List is not supported
java.lang.ClassCastException
- when the class of the object is inappropriate for this List
java.lang.IllegalArgumentException
- when the object cannot be added to this List
java.lang.IndexOutOfBoundsException
- when location < 0 || >= size()
boolean add(java.lang.Object object)
add
in interface Collection
object
- the object to add
java.lang.UnsupportedOperationException
- when adding to this List is not supported
java.lang.ClassCastException
- when the class of the object is inappropriate for this List
java.lang.IllegalArgumentException
- when the object cannot be added to this Listboolean addAll(int location, Collection collection)
location
- the index at which to insertcollection
- the Collection of objects
java.lang.UnsupportedOperationException
- when adding to this List is not supported
java.lang.ClassCastException
- when the class of an object is inappropriate for this List
java.lang.IllegalArgumentException
- when an object cannot be added to this List
java.lang.IndexOutOfBoundsException
- when location < 0 || >= size()
boolean addAll(Collection collection)
addAll
in interface Collection
collection
- the Collection of objects
java.lang.UnsupportedOperationException
- when adding to this List is not supported
java.lang.ClassCastException
- when the class of an object is inappropriate for this List
java.lang.IllegalArgumentException
- when an object cannot be added to this Listvoid clear()
clear
in interface Collection
java.lang.UnsupportedOperationException
- when removing from this List is not supportedisEmpty()
,
size()
boolean contains(java.lang.Object object)
contains
in interface Collection
object
- the object to search for
boolean containsAll(Collection collection)
containsAll
in interface Collection
collection
- the Collection of objects
boolean equals(java.lang.Object object)
equals
in interface Collection
equals
in class java.lang.Object
object
- Object the object to compare with this object.
true
if the object is the same as this object false
if it is different
from this object.hashCode()
java.lang.Object get(int location)
location
- the index of the element to return
java.lang.IndexOutOfBoundsException
- when location < 0 || >= size()
int hashCode()
hashCode
in interface Collection
hashCode
in class java.lang.Object
equals(java.lang.Object)
int indexOf(java.lang.Object object)
object
- the object to search for
boolean isEmpty()
isEmpty
in interface Collection
size()
Iterator iterator()
iterator
in interface Collection
iterator
in interface Iterable
Iterator
int lastIndexOf(java.lang.Object object)
object
- the object to search for
ListIterator listIterator()
ListIterator
ListIterator listIterator(int location)
location
- the index at which to start the iteration
java.lang.IndexOutOfBoundsException
- when location < 0 || >= size()
ListIterator
java.lang.Object remove(int location)
location
- the index of the object to remove
java.lang.UnsupportedOperationException
- when removing from this List is not supported
java.lang.IndexOutOfBoundsException
- when location < 0 || >= size()
boolean remove(java.lang.Object object)
remove
in interface Collection
object
- the object to remove
java.lang.UnsupportedOperationException
- when removing from this List is not supportedboolean removeAll(Collection collection)
removeAll
in interface Collection
collection
- the Collection of objects to remove
java.lang.UnsupportedOperationException
- when removing from this List is not supportedboolean retainAll(Collection collection)
retainAll
in interface Collection
collection
- the Collection of objects to retain
java.lang.UnsupportedOperationException
- when removing from this List is not supportedjava.lang.Object set(int location, java.lang.Object object)
location
- the index at which to put the specified objectobject
- the object to add
java.lang.UnsupportedOperationException
- when replacing elements in this List is not supported
java.lang.ClassCastException
- when the class of an object is inappropriate for this List
java.lang.IllegalArgumentException
- when an object cannot be added to this List
java.lang.IndexOutOfBoundsException
- when location < 0 || >= size()
int size()
size
in interface Collection
List subList(int start, int end)
start
- the index at which to start the sublistend
- the index one past the end of the sublist
java.lang.IndexOutOfBoundsException
- when start < 0, start > end
or end > size()
java.lang.Object[] toArray()
toArray
in interface Collection
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client 11g Release 1 (11.1.1) E17503-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |