edu.stanford.nlp.util.Factory Maven / Gradle / Ivy
package edu.stanford.nlp.util;
import java.io.Serializable;
/**
* A generified factory class which creates instances of a particular type.
*
* @author dramage
*/
public interface Factory extends Serializable {
/**
* Creates and returns a new instance of the given type.
*
* @return A new instance of the type T
*/
public T create();
}