org.thymeleaf.util
Class IdentityCounter<T>
Object
org.thymeleaf.util.IdentityCounter<T>
- Type Parameters:
T
- The type of the objects being counted
- All Implemented Interfaces:
- Serializable
public final class IdentityCounter<T>
- extends Object
- implements 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
- Author:
- Daniel Fernández
- See Also:
- Serialized Form
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentityCounter
public IdentityCounter(int expectedMaxSize)
count
public void count(T object)
isAlreadyCounted
public boolean isAlreadyCounted(T object)
Copyright © 2013 The THYMELEAF team. All Rights Reserved.