org.apache.lokahi.core.common.collection
Class TMCSet<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<E>
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 |
TMCSet
public TMCSet()
TMCSet
public TMCSet(java.util.Collection<? extends E> c)
TMCSet
public TMCSet(int initialCapacity)
TMCSet
public TMCSet(int initialCapacity,
float loadFactor)
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>