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

io.github.ninobomba.commons.data.services.ICreateService Maven / Gradle / Ivy

The newest version!
package io.github.ninobomba.commons.data.services;

/**
 * This interface represents a service interface for creating entities of type E.
 *
 * @param  the type of entity to be created
 */
public interface ICreateService < E > {
	
	/**
	 * Creates a new entity and returns its ID.
	 *
	 * @param entity the entity to be created
	 * @return the ID of the newly created entity
	 */
	long create( E entity );
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy