io.github.ninobomba.commons.data.persistence.ICountPersistent 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;
/**
* The ICountPersistent interface provides a method for counting the occurrences of a given type.
*
* @param the type of element to count
*/
public interface ICountPersistent < E > {
/**
* Counts the occurrences of a given type.
*
* @param type the type of element to count
* @return the number of occurrences of the given type
*/
int count( E type );
}