jpaul.DataStructs
Interface CollectionFactory<E>

All Known Implementing Classes:
SetFactory, SetFacts.COWSetFactory, SetFacts.HashSetFactory, SetFacts.TreeSetFactory

public interface CollectionFactory<E>

CollectionFactory is a collection-specific instance of the factory pattern.

Version:
$Id: CollectionFactory.java,v 1.2 2005/08/10 22:43:41 salcianu Exp $
Author:
Alexandru Salcianu - salcianu@alum.mit.edu

Method Summary
 java.util.Collection<E> newColl()
          Creates an empty collection.
 java.util.Collection<E> newColl(java.util.Collection<E> c)
          Creates a collection that contains all elements from c.
 

Method Detail

newColl

java.util.Collection<E> newColl()
Creates an empty collection.


newColl

java.util.Collection<E> newColl(java.util.Collection<E> c)
Creates a collection that contains all elements from c.



Copyright 2005 Alexandru Salcianu - salcianu@alum.mit.edu