All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jpaul.DataStructs.Factory Maven / Gradle / Ivy

Go to download

This library was originally developed by people listed at http://jpaul.sourceforge.net.

The newest version!
// Factory.java, created Wed Jul  6 07:37:29 2005 by salcianu
// Copyright (C) 2005 Alexandru Salcianu 
// Licensed under the Modified BSD Licence; see COPYING for details.
package jpaul.DataStructs;

/**
 * Factory for the factory pattern.  Encapsulates methods
 * for creating and copying objects of a certain class.
 * 
 * @author  Alexandru Salcianu - [email protected]
 * @version $Id: Factory.java,v 1.2 2005/08/10 22:43:41 salcianu Exp $ */
public interface Factory {

    /** Create a new object of class T.  Corresponds to a
        default constructor. */
    public T create();

    /** Create a new object of class T, as a copy of
        t.  Corresponds to a copy constructor. */
    public T create(T t);
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy