io.github.ninobomba.commons.data.persistence.IExistsPersistent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of t4m-commons Show documentation
Show all versions of t4m-commons Show documentation
Tools 4 Monkeys - Java Commons
The newest version!
package io.github.ninobomba.commons.data.persistence;
/**
* This interface represents a persistent existence check for an entity with the specified ID.
*
* @param the type of the ID associated with the entity
*/
public interface IExistsPersistent < ID > {
/**
* Checks if an entity with the specified ID exists.
*
* @param id the ID of the entity
* @return true if an entity with the specified ID exists, false otherwise
*/
boolean existsById ( ID id );
}