| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface supplements the net.walend.collection.Collection interface. Use it for immutable Collections of Freezables.
Use a direct implementation of this interface, like Bag, to handle an immutable multiset.
All implementations of lyophil.collection.CollectionOfFreezables should include a constructor with the single argument Collection (or a sub interface) which creates a copy of the argument.
lyophil.collection.CollectionOfFreezables implementations should not mess with the normal java equals() and hashCode() methods. Doing so prevents creating a Map of dynamic Sets, critical for an in-memory Freezer.
Implementations of these interfaces should generally go back to the Freezer for Freezables.
| Method Summary | |
 boolean | 
containsAllIdentifiedBy(Collection collectionOfIdentifiers)
Returns true if this collection contains the specified Freezables.  | 
 boolean | 
containsIdentifiedBy(java.io.Serializable id)
Returns true if this collection contains the specified Freezable.  | 
 FreezableIterator | 
freezableIterator()
Returns an iterator over the Freezables in this collection.  | 
 Collection | 
getIdentifiers()
Returns a Collection of all the identifiers in this collection.  | 
 java.util.Iterator | 
identifierIterator()
Returns an iterator over the identifiers in this collection.  | 
| 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 | 
| Method Detail | 
public boolean containsIdentifiedBy(java.io.Serializable id)
public boolean containsAllIdentifiedBy(Collection collectionOfIdentifiers)
public FreezableIterator freezableIterator()
public java.util.Iterator identifierIterator()
public Collection getIdentifiers()
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||