net.walend.lyophil.collection
Class HashSetOfFreezables

java.lang.Object
  |
  +--net.walend.collection.AbstractHashSet
        |
        +--net.walend.lyophil.collection.AbstractHashSetOfFreezables
              |
              +--net.walend.lyophil.collection.HashSetOfFreezables
All Implemented Interfaces:
java.lang.Cloneable, Collection, CollectionOfFreezables, HasState, Immutable, java.io.Serializable, Set, SetOfFreezables

public final class HashSetOfFreezables
extends AbstractHashSetOfFreezables
implements Immutable

Author:
David Walend

Nested Class Summary
 
Nested classes inherited from class net.walend.lyophil.collection.AbstractHashSetOfFreezables
 
Field Summary
 
Fields inherited from class net.walend.collection.AbstractHashSet
 
Fields inherited from interface net.walend.lyophil.collection.SetOfFreezables
EMPTY
 
Constructor Summary
HashSetOfFreezables(Collection c)
          Constructs a new set containing the elements in the specified collection.
HashSetOfFreezables(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 Objects in this collection.
 
Methods inherited from class net.walend.lyophil.collection.AbstractHashSetOfFreezables
add, addAllIdentifiedBy, addIdentifiedBy, containsAllIdentifiedBy, containsIdentifiedBy, freezableIterator, getFreezableForID, getFreezer, getIdentifiers, identifierIterator, removeAllIdentifiedBy, removeIdentifiedBy, retainAllIdentifiedBy
 
Methods inherited from class net.walend.collection.AbstractHashSet
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
 
Methods inherited from interface net.walend.collection.Collection
contains, containsAll, getIdentitor, getJavaCollection, isEmpty, sameContentsAs, size
 
Methods inherited from interface net.walend.collection.HasState
getPrincipleInterface, sameStateAs
 
Methods inherited from interface net.walend.collection.Set
getJavaSet
 

Constructor Detail

HashSetOfFreezables

public HashSetOfFreezables(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.

HashSetOfFreezables

public HashSetOfFreezables(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 interface: Collection
Returns an iterator over the Objects in this collection.

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