Skip navigation links
oracle.toplink.ejb.cmp
Class EjbCollection
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
oracle.toplink.indirection.IndirectList
oracle.toplink.indirection.EJBIndirectList
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.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 |
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.
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)
Skip navigation links