wt.fc.collections
Class SynchronizedCollections.SynchronizedSet

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

static class SynchronizedCollections.SynchronizedSet
extends SynchronizedCollections.SynchronizedCollection
implements Set


Field Summary
(package private)  Collection c
           
(package private)  Object lock
           
 
Constructor Summary
(package private) SynchronizedCollections.SynchronizedSet(Set set)
           
(package private) SynchronizedCollections.SynchronizedSet(Set set, Object lock)
           
 
Method Summary
 boolean add(Object o)
           
 boolean addAll(Collection other)
           
 void clear()
           
 boolean containsAll(Collection other)
           
 boolean equals(Object o)
           
 int hashCode()
           
 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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

c

Collection c

lock

Object lock
Constructor Detail

SynchronizedCollections.SynchronizedSet

SynchronizedCollections.SynchronizedSet(Set set)

SynchronizedCollections.SynchronizedSet

SynchronizedCollections.SynchronizedSet(Set set,
                                        Object lock)
Method Detail

equals

public boolean equals(Object o)
Specified by:
equals in interface Set

hashCode

public int hashCode()
Specified by:
hashCode in interface Set

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()