CollectionUtils (Bitronix Transaction Manager :: Core 2.1.4 API)
Date: 2013-09-15

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## bitronix.tm.utils
Class CollectionUtils

    java.lang.Object
      bitronix.tm.utils.CollectionUtils

    public class CollectionUtils

extends Object

`Collection` helper functions.

Author:
  lorban

Constructor Summary
`CollectionUtils()`

Method Summary
`static boolean` | `containsByIdentity(Collection<?> collection, Object toBeFound)` Check if a collection contains a specific object by searching for it by identity instead of by using equals/hashcode.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CollectionUtils

    public CollectionUtils()

Method Detail

### containsByIdentity

    public static boolean containsByIdentity(Collection<?> collection,
                                             Object toBeFound)

  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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013 Bitronix Software. All Rights Reserved.