|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Collections.SynchronizedCollection<E>
java.util.Collections.SynchronizedList<E>
static class Collections.SynchronizedList<E>
| Field Summary | |
|---|---|
(package private) List<E> |
list
|
| Fields inherited from class java.util.Collections.SynchronizedCollection |
|---|
c, mutex |
| Constructor Summary | |
|---|---|
Collections.SynchronizedList(List<E> l)
|
|
Collections.SynchronizedList(List<E> l,
Object mutex)
|
|
| Method Summary | |
|---|---|
void |
add(int location,
E object)
Inserts the specified object into this Vector at the specified location. |
boolean |
addAll(int location,
Collection<? extends E> collection)
Inserts the objects in the specified Collection at the specified location in this List. |
boolean |
equals(Object object)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. |
E |
get(int location)
Returns the element at the specified location in this List. |
int |
hashCode()
Returns an integer hash code for the receiver. |
int |
indexOf(Object object)
Searches this List for the specified object and returns the index of the first occurrence. |
int |
lastIndexOf(Object object)
Searches this List for the specified object and returns the index of the last occurrence. |
ListIterator<E> |
listIterator()
Returns a ListIterator on the elements of this List. |
ListIterator<E> |
listIterator(int location)
Returns a ListIterator on the elements of this List. |
E |
remove(int location)
Removes the object at the specified location from this List. |
E |
set(int location,
E object)
Replaces the element at the specified location in this List with the specified object. |
List<E> |
subList(int start,
int end)
Returns a List of the specified portion of this List from the start index to one less than the end index. |
| Methods inherited from class java.util.Collections.SynchronizedCollection |
|---|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Field Detail |
|---|
final List<E> list
| Constructor Detail |
|---|
Collections.SynchronizedList(List<E> l)
Collections.SynchronizedList(List<E> l,
Object mutex)
| Method Detail |
|---|
public void add(int location,
E object)
List
add in interface List<E>location - the index at which to insertobject - the object to add
public boolean addAll(int location,
Collection<? extends E> collection)
List
addAll in interface List<E>location - the index at which to insertcollection - the Collection of objects
public boolean equals(Object object)
Object
equals in interface Collection<E>equals in interface List<E>equals in class Objectobject - 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.Object.hashCode()public E get(int location)
List
get in interface List<E>location - the index of the element to return
public int hashCode()
Objecttrue when passed to .equals must
answer the same value for this method.
hashCode in interface Collection<E>hashCode in interface List<E>hashCode in class ObjectObject.equals(java.lang.Object)public int indexOf(Object object)
List
indexOf in interface List<E>object - the object to search for
public int lastIndexOf(Object object)
List
lastIndexOf in interface List<E>object - the object to search for
public ListIterator<E> listIterator()
List
listIterator in interface List<E>ListIteratorpublic ListIterator<E> listIterator(int location)
List
listIterator in interface List<E>location - the index at which to start the iteration
ListIteratorpublic E remove(int location)
List
remove in interface List<E>location - the index of the object to remove
public E set(int location,
E object)
List
set in interface List<E>location - the index at which to put the specified objectobject - the object to add
public List<E> subList(int start,
int end)
List
subList in interface List<E>start - the index at which to start the sublistend - the index one past the end of the sublist
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||