com.generationjava.collections
Class ProxySet

java.lang.Object
  extended bycom.generationjava.collections.ProxySet
All Implemented Interfaces:
Collection, Set

public class ProxySet
extends Object
implements Set

A Set which wraps another Set. Intended mainly to be used as a superclass.


Constructor Summary
ProxySet(Set set)
           
 
Method Summary
 boolean add(Object obj)
           
 boolean addAll(Collection c)
           
 void clear()
           
 boolean contains(Object obj)
           
 boolean containsAll(Collection c)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isEmpty()
           
 Iterator iterator()
           
 boolean remove(Object obj)
           
 boolean removeAll(Collection c)
           
 boolean retainAll(Collection c)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] arr)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxySet

public ProxySet(Set set)
Method Detail

add

public boolean add(Object obj)
Specified by:
add in interface Set

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Set

clear

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

contains

public boolean contains(Object obj)
Specified by:
contains in interface Set

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface Set

equals

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

hashCode

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

isEmpty

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

iterator

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

remove

public boolean remove(Object obj)
Specified by:
remove in interface Set

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Set

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface Set

size

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

toArray

public Object[] toArray()
Specified by:
toArray in interface Set

toArray

public Object[] toArray(Object[] arr)
Specified by:
toArray in interface Set


Copyright © 2000-2005 OSJava. All Rights Reserved.