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
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 |
list
private List list
Collections.SynchronizedList
Collections.SynchronizedList(List list)
Collections.SynchronizedList
Collections.SynchronizedList(List list,
Object mutex)
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