Interface ElementCounter<E> (2.20.0)

Stay organized with collections Save and categorize content based on your preferences.
public interface ElementCounter<E>

Interface representing an object that provides a numerical count given an object of the parameterized type.

Type Parameter

NameDescription
E

Methods

count(E element)

public abstract long count(E element)

Provides the numerical count associated with the given object.

Parameter
NameDescription
elementE
Returns
TypeDescription
long