net.walend.lyophil.collection
Class FreezerHashSet

java.lang.Object
  |
  +--net.walend.lyophil.collection.AbstractFreezerHashSet
        |
        +--net.walend.lyophil.collection.FreezerHashSet
All Implemented Interfaces:
Collection, CollectionOfFreezables, HasState, Immutable, Set, SetOfFreezables

public final class FreezerHashSet
extends AbstractFreezerHashSet
implements Immutable

Since:
20010727
Author:
David Walend

Nested Class Summary
 
Nested classes inherited from class net.walend.lyophil.collection.AbstractFreezerHashSet
 
Field Summary
 
Fields inherited from class net.walend.lyophil.collection.AbstractFreezerHashSet
serialVersionUID
 
Fields inherited from interface net.walend.lyophil.collection.SetOfFreezables
EMPTY
 
Constructor Summary
FreezerHashSet(Collection c)
          Constructs a new set containing the elements in the specified collection.
FreezerHashSet(java.util.Collection c)
          Constructs a new set containing the elements in the specified java.util.Collection.
 
Method Summary
 java.util.Iterator iterator()
          Returns an iterator over the elements in this set.
 
Methods inherited from class net.walend.lyophil.collection.AbstractFreezerHashSet
add, addAll, addAllIdentifiedBy, addIdentifiedBy, clear, contains, containsAll, containsAllIdentifiedBy, containsIdentifiedBy, freezableIterator, getFreezableForID, getFreezer, getIdentifiers, getIdentitor, getJavaCollection, getJavaSet, getPrincipleInterface, identifierIterator, isEmpty, remove, removeAll, removeAllIdentifiedBy, removeIdentifiedBy, retainAll, retainAllIdentifiedBy, sameContentsAs, sameStateAs, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FreezerHashSet

public FreezerHashSet(Collection c)
Constructs a new set containing the elements in the specified collection. The capacity of the backing MutableHashMap instance is twice the size of the specified collection or eleven (whichever is greater), the default load factor (which is 0.75) is used. It uses the same Identitor as c.

Parameters:
c - the collection whose elements are to be placed into this set.

FreezerHashSet

public FreezerHashSet(java.util.Collection c)
Constructs a new set containing the elements in the specified java.util.Collection. The capacity of the backing MutableHashMap instance is twice the size of the specified collection or eleven (whichever is greater), and the default load factor (which is 0.75) is used. It uses the DefaultIdentitor.

Parameters:
c - the collection whose elements are to be placed into this set.
Method Detail

iterator

public java.util.Iterator iterator()
Description copied from class: AbstractFreezerHashSet
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 AbstractFreezerHashSet
Following copied from class: net.walend.lyophil.collection.AbstractFreezerHashSet
Returns:
an Iterator over the elements in this set.
See Also:
<{ConcurrentModificationException}>


Copyright (c) 2000, 2001, David Walend