arom.util
Class TypedSet

java.lang.Object
  |
  +--arom.util.TypedSet

public class TypedSet
extends Object
implements Set

A Set that contains typed elements. All elements in this collection must belongs to the same type (to the same Java class).

Version:
0.1

Constructor Summary
TypedSet(Class c)
           
TypedSet(Collection c)
           
 
Method Summary
 boolean add(Object o)
           
 boolean addAll(Collection c)
           
 void clear()
           
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 boolean equals(Object o)
           
 Class getType()
           
 int hashCode()
           
 boolean isEmpty()
           
 Iterator iterator()
           
static Object quotify(Object obj)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection c)
           
 boolean retainAll(Collection c)
           
 int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TypedSet

public TypedSet(Collection c)

TypedSet

public TypedSet(Class c)
Method Detail

quotify

public static Object quotify(Object obj)

getType

public Class getType()

toString

public String toString()
Overrides:
toString in class Object

size

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

isEmpty

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

contains

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

iterator

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

toArray

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

toArray

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

add

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

remove

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

containsAll

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

addAll

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

retainAll

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

removeAll

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

clear

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

equals

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

hashCode

public int hashCode()
Specified by:
hashCode in interface Set
Overrides:
hashCode in class Object