Package org.thymeleaf.util
Class IdentityCounter<T>
-
- org.thymeleaf.util.IdentityCounter<T>
-
- Type Parameters:
T
- The type of the objects being counted
- All Implemented Interfaces:
public final class IdentityCounter<T> extends implements
Purpose-specific set that can tell whether an object (by reference) has already been added to it.
Objects of this class are not thread-safe.
- Since:
- 2.0.0
- Author:
- Rustam Miftakhutdinov
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IdentityCounter(int expectedMaxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
count(T object)
boolean
isAlreadyCounted(T object)
-