java.util
Class Collections.SynchronizedCollection
java.lang.Object
|
+--java.util.Collections.SynchronizedCollection
- Direct Known Subclasses:
- Collections.SynchronizedList, Collections.SynchronizedSet
- static class Collections.SynchronizedCollection
- extends Object
- implements Collection, Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
c
Collection c
mutex
Object mutex
Collections.SynchronizedCollection
Collections.SynchronizedCollection(Collection c)
Collections.SynchronizedCollection
Collections.SynchronizedCollection(Collection c,
Object mutex)
size
public int size()
- Specified by:
- size in interface Collection
isEmpty
public boolean isEmpty()
- Specified by:
- isEmpty in interface Collection
contains
public boolean contains(Object o)
- Specified by:
- contains in interface Collection
toArray
public Object[] toArray()
- Specified by:
- toArray in interface Collection
toArray
public Object[] toArray(Object[] a)
- Specified by:
- toArray in interface Collection
iterator
public Iterator iterator()
- Specified by:
- iterator in interface Collection
add
public boolean add(Object o)
- Specified by:
- add in interface Collection
remove
public boolean remove(Object o)
- Specified by:
- remove in interface Collection
containsAll
public boolean containsAll(Collection coll)
- Specified by:
- containsAll in interface Collection
addAll
public boolean addAll(Collection coll)
- Specified by:
- addAll in interface Collection
removeAll
public boolean removeAll(Collection coll)
- Specified by:
- removeAll in interface Collection
retainAll
public boolean retainAll(Collection coll)
- Specified by:
- retainAll in interface Collection
clear
public void clear()
- Specified by:
- clear in interface Collection