wt.fc.collections
Class SynchronizedCollections.SynchronizedCollection

java.lang.Object
  extended byjava.util.AbstractCollection
      extended bywt.fc.collections.SynchronizedCollections.SynchronizedCollection
All Implemented Interfaces:
Collection, Serializable
Direct Known Subclasses:
SynchronizedCollections.SynchronizedSet, SynchronizedCollections.SynchronizedWTCollection
Enclosing class:
SynchronizedCollections

static class SynchronizedCollections.SynchronizedCollection
extends AbstractCollection
implements Serializable


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

Field Detail

c

Collection c

lock

Object lock
Constructor Detail

SynchronizedCollections.SynchronizedCollection

SynchronizedCollections.SynchronizedCollection(Collection c)

SynchronizedCollections.SynchronizedCollection

SynchronizedCollections.SynchronizedCollection(Collection c,
                                               Object lock)
Method Detail

add

public boolean add(Object o)
Specified by:
add in interface Collection

addAll

public boolean addAll(Collection other)
Specified by:
addAll in interface Collection

clear

public void clear()
Specified by:
clear in interface Collection

containsAll

public boolean containsAll(Collection other)
Specified by:
containsAll in interface Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection

iterator

public Iterator iterator()
Specified by:
iterator in interface Collection

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection

removeAll

public boolean removeAll(Collection other)
Specified by:
removeAll in interface Collection

retainAll

public boolean retainAll(Collection other)
Specified by:
retainAll in interface Collection

size

public int size()
Specified by:
size 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

toString

public String toString()