|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.Vector oracle.toplink.indirection.IndirectList
public class IndirectList
IndirectList allows a domain class to take advantage of TopLink indirection without having to declare its instance variable as a ValueHolderInterface.
To use an IndirectList:
CollectionMapping
,
IndirectMap
,
Serialized FormConstructor Summary | |
---|---|
IndirectList()
Construct an empty IndirectList so that its internal data array has size 10 and its standard capacity increment is zero. |
|
IndirectList(java.util.Collection c)
Construct an IndirectList containing the elements of the specified collection, in the order they are returned by the collection's iterator. |
|
IndirectList(int initialCapacity)
Construct an empty IndirectList with the specified initial capacity and with its capacity increment equal to zero. |
|
IndirectList(int initialCapacity,
int capacityIncrement)
Construct an empty IndirectList with the specified initial capacity and capacity increment. |
Method Summary | |
---|---|
void |
add(int index,
java.lang.Object element)
|
boolean |
add(java.lang.Object element)
|
boolean |
addAll(java.util.Collection c)
|
boolean |
addAll(int index,
java.util.Collection c)
|
void |
addElement(java.lang.Object obj)
|
int |
capacity()
|
void |
clear()
|
java.lang.Object |
clone()
|
boolean |
contains(java.lang.Object element)
|
boolean |
containsAll(java.util.Collection c)
|
void |
copyInto(java.lang.Object[] anArray)
|
java.lang.Object |
elementAt(int index)
|
java.util.Enumeration |
elements()
|
void |
ensureCapacity(int minCapacity)
|
boolean |
equals(java.lang.Object o)
|
java.lang.Object |
firstElement()
|
java.lang.Object |
get(int index)
|
int |
indexOf(java.lang.Object elem)
|
int |
indexOf(java.lang.Object elem,
int index)
|
void |
insertElementAt(java.lang.Object obj,
int index)
|
boolean |
isEmpty()
|
boolean |
isInstantiated()
Return whether the contents have been read from the database. |
java.util.Iterator |
iterator()
|
java.lang.Object |
lastElement()
|
int |
lastIndexOf(java.lang.Object elem)
|
int |
lastIndexOf(java.lang.Object elem,
int index)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object element)
|
boolean |
removeAll(java.util.Collection c)
|
void |
removeAllElements()
|
boolean |
removeElement(java.lang.Object obj)
|
void |
removeElementAt(int index)
|
boolean |
retainAll(java.util.Collection c)
|
java.lang.Object |
set(int index,
java.lang.Object element)
|
void |
setElementAt(java.lang.Object obj,
int index)
|
void |
setSize(int newSize)
|
int |
size()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.String |
toString()
Use the java.util.Vector#toString(); but wrap it with braces to indicate there is a bit of indirection. |
void |
trimToSize()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IndirectList()
public IndirectList(int initialCapacity)
initialCapacity
- the initial capacity of the vector
java.lang.IllegalArgumentException
- if the specified initial capacity
is negativepublic IndirectList(int initialCapacity, int capacityIncrement)
initialCapacity
- the initial capacity of the vectorcapacityIncrement
- the amount by which the capacity is
increased when the vector overflows
java.lang.IllegalArgumentException
- if the specified initial capacity
is negativepublic IndirectList(java.util.Collection c)
c
- a collection containing the elements to construct this IndirectList with.Method Detail |
---|
public void add(int index, java.lang.Object element)
add
in interface java.util.List
add
in class java.util.Vector
Vector.add(int, java.lang.Object)
public boolean add(java.lang.Object element)
add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.Vector
Vector.add(java.lang.Object)
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
addAll
in class java.util.Vector
Vector.addAll(int, java.util.Collection)
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.Vector
Vector.addAll(java.util.Collection)
public void addElement(java.lang.Object obj)
addElement
in class java.util.Vector
Vector.addElement(java.lang.Object)
public int capacity()
capacity
in class java.util.Vector
Vector.capacity()
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.Vector
Vector.clear()
public java.lang.Object clone()
clone
in class java.util.Vector
This will result in a database query if necessary.
public boolean contains(java.lang.Object element)
contains
in interface java.util.Collection
contains
in interface java.util.List
contains
in class java.util.Vector
Vector.contains(java.lang.Object)
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
containsAll
in class java.util.Vector
Vector.containsAll(java.util.Collection)
public void copyInto(java.lang.Object[] anArray)
copyInto
in class java.util.Vector
Vector.copyInto(java.lang.Object[])
public java.lang.Object elementAt(int index)
elementAt
in class java.util.Vector
Vector.elementAt(int)
public java.util.Enumeration elements()
elements
in class java.util.Vector
Vector.elements()
public void ensureCapacity(int minCapacity)
ensureCapacity
in class java.util.Vector
Vector.ensureCapacity(int)
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.util.Vector
Vector.equals(java.lang.Object)
public java.lang.Object firstElement()
firstElement
in class java.util.Vector
Vector.firstElement()
public java.lang.Object get(int index)
get
in interface java.util.List
get
in class java.util.Vector
Vector.get(int)
public int indexOf(java.lang.Object elem)
indexOf
in interface java.util.List
indexOf
in class java.util.Vector
Vector.indexOf(java.lang.Object)
public int indexOf(java.lang.Object elem, int index)
indexOf
in class java.util.Vector
Vector.indexOf(java.lang.Object, int)
public void insertElementAt(java.lang.Object obj, int index)
insertElementAt
in class java.util.Vector
Vector.insertElementAt(java.lang.Object, int)
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
isEmpty
in class java.util.Vector
Vector.isEmpty()
public boolean isInstantiated()
isInstantiated
in interface IndirectContainer
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
iterator
in class java.util.AbstractList
AbstractList.iterator()
public java.lang.Object lastElement()
lastElement
in class java.util.Vector
Vector.lastElement()
public int lastIndexOf(java.lang.Object elem)
lastIndexOf
in interface java.util.List
lastIndexOf
in class java.util.Vector
Vector.lastIndexOf(java.lang.Object)
public int lastIndexOf(java.lang.Object elem, int index)
lastIndexOf
in class java.util.Vector
Vector.lastIndexOf(java.lang.Object, int)
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
AbstractList.listIterator()
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
listIterator
in class java.util.AbstractList
AbstractList.listIterator(int)
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class java.util.Vector
Vector.remove(int)
public boolean remove(java.lang.Object element)
remove
in interface java.util.Collection
remove
in interface java.util.List
remove
in class java.util.Vector
Vector.remove(java.lang.Object)
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
removeAll
in class java.util.Vector
Vector.removeAll(java.util.Collection)
public void removeAllElements()
removeAllElements
in class java.util.Vector
Vector.removeAllElements()
public boolean removeElement(java.lang.Object obj)
removeElement
in class java.util.Vector
Vector.removeElement(java.lang.Object)
public void removeElementAt(int index)
removeElementAt
in class java.util.Vector
Vector.removeElementAt(int)
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
retainAll
in class java.util.Vector
Vector.retainAll(java.util.Collection)
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
set
in class java.util.Vector
Vector.set(int, java.lang.Object)
public void setElementAt(java.lang.Object obj, int index)
setElementAt
in class java.util.Vector
Vector.setElementAt(java.lang.Object, int)
public void setSize(int newSize)
setSize
in class java.util.Vector
Vector.setSize(int)
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
size
in class java.util.Vector
Vector.size()
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
subList
in class java.util.Vector
Vector.subList(int, int)
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class java.util.Vector
Vector.toArray()
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
toArray
in class java.util.Vector
Vector.toArray(java.lang.Object[])
public java.lang.String toString()
toString
in class java.util.Vector
Vector.toString()
public void trimToSize()
trimToSize
in class java.util.Vector
Vector.trimToSize()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |