public class CollectionUtils
extends java.lang.Object
Collection helper functions.
| Constructor and Description |
|---|
CollectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsByIdentity(java.util.Collection<?> collection,
java.lang.Object toBeFound)
Check if a collection contains a specific object by searching for it by identity
instead of by using equals/hashcode.
|
public static boolean containsByIdentity(java.util.Collection<?> collection,
java.lang.Object toBeFound)
collection - the collection to search in.toBeFound - the object to search for.Copyright © 2006-2023 Bitronix Software. All Rights Reserved.