java.util
Class Collections.SynchronizedList

java.lang.Object
  |
  +--java.util.Collections.SynchronizedCollection
        |
        +--java.util.Collections.SynchronizedList

static class Collections.SynchronizedList
extends Collections.SynchronizedCollection
implements List

See Also:
Serialized Form

Field Summary
private  List list
           
 
Fields inherited from class java.util.Collections.SynchronizedCollection
c, mutex
 
Constructor Summary
(package private) Collections.SynchronizedList(List list)
           
(package private) Collections.SynchronizedList(List list, Object mutex)
           
 
Method Summary
 void add(int index, Object element)
           
 boolean addAll(int index, Collection c)
           
 boolean equals(Object o)
           
 Object get(int index)
           
 int hashCode()
           
 int indexOf(Object o)
           
 int lastIndexOf(Object o)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
 Object remove(int index)
           
 Object set(int index, Object element)
           
 List subList(int fromIndex, int toIndex)
           
 
Methods inherited from class java.util.Collections.SynchronizedCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

list

private List list
Constructor Detail

Collections.SynchronizedList

Collections.SynchronizedList(List list)

Collections.SynchronizedList

Collections.SynchronizedList(List list,
                             Object mutex)
Method Detail

equals

public boolean equals(Object o)
Specified by:
equals in interface List
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface List
Overrides:
hashCode in class Object

get

public Object get(int index)
Specified by:
get in interface List

set

public Object set(int index,
                  Object element)
Specified by:
set in interface List

add

public void add(int index,
                Object element)
Specified by:
add in interface List

remove

public Object remove(int index)
Specified by:
remove in interface List

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List

addAll

public boolean addAll(int index,
                      Collection c)
Specified by:
addAll in interface List

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List

subList

public List subList(int fromIndex,
                    int toIndex)
Specified by:
subList in interface List