|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.util.CopyOnWriteList
Deprecated. Use CopyOnWriteArrayList
public class CopyOnWriteList
A simple implementation of a copy-on-write list. Null elements are not allowed. The copy-on-write behavior ensures that adding or removing items while iterating through the list does not affect the iteration in progress. A common usage of CopyOnWriteList is to keep a list of event listeners.
Constructor Summary | |
---|---|
CopyOnWriteList() Deprecated. |
|
CopyOnWriteList(java.lang.Class itemType) Deprecated. |
Method Summary | |
---|---|
boolean |
add(int index, java.lang.Object item) Deprecated. Adds an item to the list at the specified index. |
boolean |
add(java.lang.Object item) Deprecated. Adds an item to the list at the specified index. |
boolean |
addIfAbsent(java.lang.Object item) Deprecated. Adds an item to the list. |
void |
clear() Deprecated. |
boolean |
contains(java.lang.Object item) Deprecated. Gets whether this list contains an item. |
protected boolean |
equals(java.lang.Object o1, java.lang.Object o2) Deprecated. |
java.lang.Object[] |
getItems() Deprecated. Gets the items. |
boolean |
isEmpty() Deprecated. Gets whether this list is empty. |
java.util.Iterator |
iterator() Deprecated. Gets an iterator over the items. |
java.lang.Object |
remove(int index) Deprecated. Removes an item from the list at the specified index. |
boolean |
remove(java.lang.Object item) Deprecated. Removes a item from the list. |
int |
size() Deprecated. Gets the total number of items in this list. |
java.lang.String |
toString() Deprecated. Gets a string describing this item list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CopyOnWriteList()
public CopyOnWriteList(java.lang.Class itemType)
Method Detail |
---|
public boolean add(java.lang.Object item)
public boolean add(int index, java.lang.Object item)
public boolean addIfAbsent(java.lang.Object item)
public void clear()
public boolean remove(java.lang.Object item)
public java.lang.Object remove(int index)
public int size()
Do not rely on the count remaining unchanged between a call to this method and a call to getItems.
public boolean contains(java.lang.Object item)
public boolean isEmpty()
public java.util.Iterator iterator()
public java.lang.Object[] getItems()
To minimize overhead, this method returns a reference to the internal representation. DO NOT modify the returned value.
public java.lang.String toString()
toString
in class java.lang.Object
protected boolean equals(java.lang.Object o1, java.lang.Object o2)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |