Package bitronix.tm.utils
Class CollectionUtils
java.lang.Object
bitronix.tm.utils.CollectionUtils
Collection helper functions.
- Author:
- lorban
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsByIdentity(Collection<?> collection, Object toBeFound) Check if a collection contains a specific object by searching for it by identity instead of by using equals/hashcode.
-
Constructor Details
-
CollectionUtils
public CollectionUtils()
-
-
Method Details
-
containsByIdentity
Check if a collection contains a specific object by searching for it by identity instead of by using equals/hashcode.- Parameters:
collection- the collection to search in.toBeFound- the object to search for.- Returns:
- true if the collection contains the object, false otherwise.
-