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

Field Summary
(package private)  Collection c
           
(package private)  Object mutex
           
 
Constructor Summary
(package private) Collections.SynchronizedCollection(Collection c)
           
(package private) Collections.SynchronizedCollection(Collection c, Object mutex)
           
 
Method Summary
 boolean add(Object o)
           
 boolean addAll(Collection coll)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection coll)
           
 boolean isEmpty()
           
 Iterator iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection coll)
           
 boolean retainAll(Collection coll)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

c

Collection c

mutex

Object mutex
Constructor Detail

Collections.SynchronizedCollection

Collections.SynchronizedCollection(Collection c)

Collections.SynchronizedCollection

Collections.SynchronizedCollection(Collection c,
                                   Object mutex)
Method Detail

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