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

com.github.thorbenkuck.netcom2.interfaces.SimpleFactory Maven / Gradle / Ivy

package com.github.thorbenkuck.netcom2.interfaces;

/**
 * Similarly to the {@link Factory}, this Class creates a new object, declared using the generic type upon calling the {@link #create()}
 * method.
 *
 * @param  the return type of the SimpleFactory
 * @version 1.0
 * @see Factory
 * @since 1.0
 */
@FunctionalInterface
public interface SimpleFactory {

	/**
	 * By calling this method, this Class instantiates (creates) the new Object.
	 * It should NOT return any previously created instance, but a new instance every time the Method is called.
	 *
	 * @return a new Instance of the defined Type.
	 */
	T create();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy