jpaul.DataStructs
Interface Factory<T>

All Known Implementing Classes:
MapFactory, MapFacts.HashMapFactory, MapFacts.TreeMapFactory, RelationFactory, RelFacts.COWRelationFactory, RelFacts.MapSetRelationFactory, SetFactory, SetFacts.COWSetFactory, SetFacts.HashSetFactory, SetFacts.TreeSetFactory

public interface Factory<T>

Factory for the factory pattern. Encapsulates methods for creating and copying objects of a certain class.

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

Method Summary
 T create()
          Create a new object of class T.
 T create(T t)
          Create a new object of class T, as a copy of t.
 

Method Detail

create

T create()
Create a new object of class T. Corresponds to a default constructor.


create

T create(T t)
Create a new object of class T, as a copy of t. Corresponds to a copy constructor.



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