org.apache.lokahi.core.common.collection
Class TMCSet<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<E>
              extended by org.apache.lokahi.core.common.collection.TMCSet<E>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>

public class TMCSet<E>
extends java.util.HashSet<E>

This Set is an extention of HashSet that does not accept null elements. All other properties remain the same.

Version:
$Id: TMCSet.java,v 1.2 2006/03/06 22:31:55 drtobes Exp $
Author:
Stephen Toback
See Also:
Serialized Form

Constructor Summary
TMCSet()
           
TMCSet(java.util.Collection<? extends E> c)
           
TMCSet(int initialCapacity)
           
TMCSet(int initialCapacity, float loadFactor)
           
 
Method Summary
 boolean add(E o)
           
 
Methods inherited from class java.util.HashSet
clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

TMCSet

public TMCSet()

TMCSet

public TMCSet(java.util.Collection<? extends E> c)

TMCSet

public TMCSet(int initialCapacity)

TMCSet

public TMCSet(int initialCapacity,
              float loadFactor)
Method Detail

add

public boolean add(E o)
Specified by:
add in interface java.util.Collection<E>
Specified by:
add in interface java.util.Set<E>
Overrides:
add in class java.util.HashSet<E>