| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
  |
  +--net.walend.collection.AbstractHashSet
        |
        +--net.walend.lyophil.collection.AbstractHashSetOfFreezables
              |
              +--net.walend.lyophil.collection.MutableHashSetOfFreezables
| 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 | |
MutableHashSetOfFreezables()
Constructs a new, empty set; the backing MutableHashMap instance has default capacity and load factor, which is 0.75, and uses the DefaultIdentitor.  | 
|
MutableHashSetOfFreezables(Collection c)
Constructs a new set containing the elements in the specified collection.  | 
|
MutableHashSetOfFreezables(java.util.Collection c)
Constructs a new set containing the elements in the specified java.util.Collection.  | 
|
MutableHashSetOfFreezables(Identitor identitor)
Constructs a new, empty set; the backing MutableHashMap instance has default capacity and load factor, which is 0.75.  | 
|
MutableHashSetOfFreezables(Identitor identitor,
                           int initialCapacity)
Constructs a new, empty set; the backing MutableHashMap instance has the specified initial capacity and default load factor, which is 0.75.  | 
|
MutableHashSetOfFreezables(Identitor identitor,
                           int initialCapacity,
                           float loadFactor)
Constructs a new, empty set; the backing MutableHashMap instance has the specified initial capacity and the specified load factor.  | 
|
MutableHashSetOfFreezables(int initialCapacity)
Constructs a new, empty set; the backing MutableHashMap instance has the specified initial capacity and default load factor, which is 0.75.  | 
|
MutableHashSetOfFreezables(int initialCapacity,
                           float loadFactor)
Constructs a new, empty set; the backing MutableHashMap instance has the specified initial capacity and the specified load factor.  | 
|
| Method Summary | |
 boolean | 
add(java.lang.Object object)
Adds a Object to the MutableCollection.  | 
 boolean | 
addAll(Collection c)
Adds all the Objects in c to this MutableCollection by using the add() method.  | 
 boolean | 
addAllIdentifiedBy(Collection c)
Adds all the Freezables identified by c to this MutableCollection using the addIdentifier method.  | 
 boolean | 
addIdentifiedBy(java.io.Serializable id)
Adds a Freezable to the MutableCollection.  | 
 void | 
clear()
Removes all of the Objects in this collection.  | 
 boolean | 
remove(java.lang.Object object)
Removes a Object from the MutableCollection.  | 
 boolean | 
removeAll(Collection c)
Removes all the Objects in c from this MutableCollection by using the remove() method.  | 
 boolean | 
removeAllIdentifiedBy(Collection c)
Removes all the Freezables identified by c from this MutableCollection using the removeIdentifiedBy method.  | 
 boolean | 
removeIdentifiedBy(java.io.Serializable id)
Removes a Freezable from the MutableCollection, based on that Freezable's identifier.  | 
 boolean | 
retainAll(Collection c)
Retains only the Objects in this collection that are contained in c by using the contains() and remove() methods.  | 
 boolean | 
retainAllIdentifiedBy(Collection c)
Removes all but the Freezables identified by c from this MutableCollection using the removeIdentifiedBy method.  | 
| Methods inherited from class net.walend.lyophil.collection.AbstractHashSetOfFreezables | 
containsAllIdentifiedBy, containsIdentifiedBy, freezableIterator, getFreezableForID, getFreezer, getIdentifiers, identifierIterator | 
| Methods inherited from class net.walend.collection.AbstractHashSet | 
clone, contains, containsAll, getIdentitor, getJavaCollection, getJavaSet, getPrincipleInterface, isEmpty, iterator, 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.lyophil.collection.CollectionOfFreezables | 
containsAllIdentifiedBy, containsIdentifiedBy, freezableIterator, getIdentifiers, identifierIterator | 
| Methods inherited from interface net.walend.collection.Collection | 
contains, containsAll, getIdentitor, getJavaCollection, isEmpty, iterator, sameContentsAs, size | 
| Methods inherited from interface net.walend.collection.HasState | 
getPrincipleInterface, sameStateAs | 
| Methods inherited from interface net.walend.collection.Set | 
getJavaSet | 
| Constructor Detail | 
public MutableHashSetOfFreezables()
public MutableHashSetOfFreezables(Collection c)
c - the collection whose elements are to be placed into this set.public MutableHashSetOfFreezables(java.util.Collection c)
c - the collection whose elements are to be placed into this set.
public MutableHashSetOfFreezables(int initialCapacity,
                                  float loadFactor)
initialCapacity - the initial capacity of the hash map.loadFactor - the load factor of the hash map.java.lang.IllegalArgumentException - if the initial capacity is less
                 than zero, or if the load factor is nonpositive.public MutableHashSetOfFreezables(int initialCapacity)
initialCapacity - the initial capacity of the hash table.java.lang.IllegalArgumentException - if the initial capacity is less
                 than zero.public MutableHashSetOfFreezables(Identitor identitor)
public MutableHashSetOfFreezables(Identitor identitor,
                                  int initialCapacity,
                                  float loadFactor)
identitor - initialCapacity - the initial capacity of the hash map.loadFactor - the load factor of the hash map.java.lang.IllegalArgumentException - if the initial capacity is less
             than zero, or if the load factor is nonpositive.
public MutableHashSetOfFreezables(Identitor identitor,
                                  int initialCapacity)
identitor - initialCapacity - the initial capacity of the hash table.java.lang.IllegalArgumentException - if the initial capacity is less
                 than zero.| Method Detail | 
public boolean add(java.lang.Object object)
add in interface MutableCollectionadd in class AbstractHashSetOfFreezablespublic boolean remove(java.lang.Object object)
remove in interface MutableCollectionremove in class AbstractHashSetpublic boolean addAll(Collection c)
addAll in interface MutableCollectionaddAll in class AbstractHashSetpublic boolean removeAll(Collection c)
removeAll in interface MutableCollectionremoveAll in class AbstractHashSetpublic boolean retainAll(Collection c)
retainAll in interface MutableCollectionretainAll in class AbstractHashSetpublic void clear()
clear in interface MutableCollectionclear in class AbstractHashSetpublic boolean addIdentifiedBy(java.io.Serializable id)
addIdentifiedBy in interface MutableCollectionOfFreezablesaddIdentifiedBy in class AbstractHashSetOfFreezablesjava.lang.ClassCastException - class of the specified element prevents it from being
    added to this collection.java.lang.IllegalArgumentException - some aspect of this element prevents it from being
    added to this collection.ZombieIdentifierException - if f is not in the Freezer and this implementation checks on add.public boolean removeIdentifiedBy(java.io.Serializable id)
removeIdentifiedBy in interface MutableCollectionOfFreezablesremoveIdentifiedBy in class AbstractHashSetOfFreezablespublic boolean addAllIdentifiedBy(Collection c)
addAllIdentifiedBy in interface MutableCollectionOfFreezablesaddAllIdentifiedBy in class AbstractHashSetOfFreezablesjava.lang.ClassCastException - if the class of an element of the specified collection prevents it from being
    added to this collection.java.lang.IllegalArgumentException - some aspect of an element of the specified collection prevents it from being
    added to this collection.public boolean removeAllIdentifiedBy(Collection c)
removeAllIdentifiedBy in interface MutableCollectionOfFreezablesremoveAllIdentifiedBy in class AbstractHashSetOfFreezablesjava.lang.ClassCastException - if the class of an element of the specified collection prevents it from being
        added to this collection.java.lang.IllegalArgumentException - some aspect of an element of the specified collection prevents it from being
        added to this collection.public boolean retainAllIdentifiedBy(Collection c)
retainAllIdentifiedBy in interface MutableCollectionOfFreezablesretainAllIdentifiedBy in class AbstractHashSetOfFreezablesjava.lang.ClassCastException - if the class of an element of the specified collection prevents it from being
        added to this collection.java.lang.IllegalArgumentException - some aspect of an element of the specified collection prevents it from being
        added to this collection.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||