net.walend.collection
Class HashSet

java.lang.Object
  |
  +--net.walend.collection.AbstractHashSet
        |
        +--net.walend.collection.HashSet
All Implemented Interfaces:
java.lang.Cloneable, Collection, HasState, Immutable, java.io.Serializable, Set

public final class HashSet
extends AbstractHashSet
implements Immutable

This implementation of Set is built on top of a Map.

Since:
20010409
Author:
David Walend

Field Summary
 
Fields inherited from class net.walend.collection.AbstractHashSet
serialVersionUID
 
Fields inherited from interface net.walend.collection.Set
EMPTY
 
Constructor Summary
HashSet(Collection collection)
           
HashSet(java.util.Collection collection)
           
 
Method Summary
 java.util.Iterator iterator()
          Returns an iterator over the elements in this set.
 
Methods inherited from class net.walend.collection.AbstractHashSet
add, addAll, clear, clone, contains, containsAll, getIdentitor, getJavaCollection, getJavaSet, getPrincipleInterface, isEmpty, remove, removeAll, retainAll, sameContentsAs, sameStateAs, size, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HashSet

public HashSet(Collection collection)

HashSet

public HashSet(java.util.Collection collection)
Method Detail

iterator

public java.util.Iterator iterator()
Description copied from class: AbstractHashSet
Returns an iterator over the elements in this set. The elements are returned in no particular order.

Specified by:
iterator in interface Collection
Overrides:
iterator in class AbstractHashSet
Following copied from class: net.walend.collection.AbstractHashSet
Returns:
an Iterator over the elements in this set.
See Also:
ConcurrentModificationException


Copyright (c) 2000, 2001, David Walend