Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.ejb.cmp
Class EjbCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by oracle.toplink.indirection.IndirectList
                  extended by oracle.toplink.indirection.EJBIndirectList
                      extended by oracle.toplink.ejb.cmp.EjbCollection
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess, ChangeTracker, CollectionChangeTracker, IndirectCollection, IndirectContainer

public class EjbCollection
extends EJBIndirectList

Special EJB-friendly collection which uses EJB(Local)Object.isIdentical() instead of equals().

See Also:
Serialized Form

Constructor Summary
EjbCollection()
          Constructs an empty list with an initial capacity of ten.
EjbCollection(java.util.Collection c)
          Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
EjbCollection(int initialCapacity)
          Constructs an empty list with the specified initial capacity.
 
Method Summary
 int indexOf(java.lang.Object obj)
           
 boolean remove(java.lang.Object obj)
           
 
Methods inherited from class oracle.toplink.indirection.EJBIndirectList
contains, containsAll, indexOf, lastIndexOf, lastIndexOf, removeElement
 
Methods inherited from class oracle.toplink.indirection.IndirectList
add, add, addAll, addAll, addElement, capacity, clear, clone, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, insertElementAt, isEmpty, isInstantiated, iterator, lastElement, listIterator, listIterator, remove, removeAll, removeAllElements, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EjbCollection

public EjbCollection()
Constructs an empty list with an initial capacity of ten.


EjbCollection

public EjbCollection(int initialCapacity)
Constructs an empty list with the specified initial capacity.

Parameters:
initialCapacity - the initial capacity of the list.
Throws:
java.lang.IllegalArgumentException - if the specified initial capacity is negative

EjbCollection

public EjbCollection(java.util.Collection c)
Constructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator. The ArrayList instance has an initial capacity of 110% the size of the specified collection.

Parameters:
c - the collection whose elements are to be placed into this list.
Throws:
java.lang.NullPointerException - if the specified collection is null.
Method Detail

remove

public boolean remove(java.lang.Object obj)
Specified by:
remove in interface java.util.Collection
Specified by:
remove in interface java.util.List
Overrides:
remove in class EJBIndirectList
See Also:
Vector.remove(java.lang.Object)

indexOf

public int indexOf(java.lang.Object obj)
Specified by:
indexOf in interface java.util.List
Overrides:
indexOf in class EJBIndirectList
See Also:
Vector.indexOf(java.lang.Object, int)

Copyright © 1998, 2010, Oracle. All Rights Reserved.