Package org.thymeleaf.util
Class IdentityCounter<T>
java.lang.Object
org.thymeleaf.util.IdentityCounter<T>
- Type Parameters:
T- The type of the objects being counted
- All Implemented Interfaces:
Serializable
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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IdentityHashMap<T, Object> private static final long -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
counted
-
-
Constructor Details
-
IdentityCounter
public IdentityCounter(int expectedMaxSize)
-
-
Method Details
-
count
-
isAlreadyCounted
-