|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.walend.lyophil.collection.AbstractFreezerHashSet
|
+--net.walend.lyophil.collection.MutableFreezerHashSet
| 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 | |
MutableFreezerHashSet()
Constructs a new, empty set; the backing MutableHashMap instance has default capacity and load factor, which is 0.75, and uses the DefaultIdentitor. |
|
MutableFreezerHashSet(Collection c)
Constructs a new set containing the elements in the specified collection. |
|
MutableFreezerHashSet(java.util.Collection c)
Constructs a new set containing the elements in the specified java.util.Collection. |
|
MutableFreezerHashSet(Identitor identitor)
Constructs a new, empty set; the backing MutableHashMap instance has default capacity and load factor, which is 0.75. |
|
MutableFreezerHashSet(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. |
|
MutableFreezerHashSet(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. |
|
MutableFreezerHashSet(int initialCapacity)
Constructs a new, empty set; the backing MutableHashMap instance has the specified initial capacity and default load factor, which is 0.75. |
|
MutableFreezerHashSet(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.AbstractFreezerHashSet |
contains, containsAll, containsAllIdentifiedBy, containsIdentifiedBy, freezableIterator, getFreezableForID, getFreezer, getIdentifiers, getIdentitor, getJavaCollection, getJavaSet, getPrincipleInterface, identifierIterator, isEmpty, iterator, sameContentsAs, sameStateAs, size, toString |
| Methods inherited from class java.lang.Object |
clone, 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 MutableFreezerHashSet()
public MutableFreezerHashSet(Collection c)
c - the collection whose elements are to be placed into this set.public MutableFreezerHashSet(java.util.Collection c)
c - the collection whose elements are to be placed into this set.
public MutableFreezerHashSet(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 MutableFreezerHashSet(int initialCapacity)
initialCapacity - the initial capacity of the hash table.java.lang.IllegalArgumentException - if the initial capacity is less
than zero.public MutableFreezerHashSet(Identitor identitor)
public MutableFreezerHashSet(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 MutableFreezerHashSet(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 AbstractFreezerHashSetpublic boolean remove(java.lang.Object object)
remove in interface MutableCollectionremove in class AbstractFreezerHashSetpublic boolean addAll(Collection c)
addAll in interface MutableCollectionaddAll in class AbstractFreezerHashSetpublic boolean removeAll(Collection c)
removeAll in interface MutableCollectionremoveAll in class AbstractFreezerHashSetpublic boolean retainAll(Collection c)
retainAll in interface MutableCollectionretainAll in class AbstractFreezerHashSetpublic void clear()
clear in interface MutableCollectionclear in class AbstractFreezerHashSetpublic boolean addIdentifiedBy(java.io.Serializable id)
addIdentifiedBy in interface MutableCollectionOfFreezablesaddIdentifiedBy in class AbstractFreezerHashSetjava.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 AbstractFreezerHashSetpublic boolean addAllIdentifiedBy(Collection c)
addAllIdentifiedBy in interface MutableCollectionOfFreezablesaddAllIdentifiedBy in class AbstractFreezerHashSetjava.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 AbstractFreezerHashSetjava.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 AbstractFreezerHashSetjava.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 | ||||||||||