|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ConcurrentItem
Container class for elements in a concurrent list. Any object even null is allowed to be the content of a ConcurrentItem. Besides the necessary constructors, the only publically available methods can get or set the content of the container.
Field Summary | |
(package private) boolean |
deleted
The flag which indicates whether this item as been removed already by some thread. |
(package private) java.lang.Object |
element
The content of this item. |
(package private) int |
iteratorCounter
The counter which counts the number of iterators currently holding this item. |
(package private) ConcurrentItem |
next
The link to the subsequent item in the list. |
(package private) ConcurrentItem |
previous
The link to the previous item in the list. |
Constructor Summary | |
|
ConcurrentItem()
Constructs an |
|
ConcurrentItem(java.lang.Object element)
Constructs a ConcurrentItem containing an object. |
(package private) |
ConcurrentItem(java.lang.Object element,
ConcurrentItem next,
ConcurrentItem previous)
Constructs a ConcurrentItem containing an object and two links to the next and previous items in a ConcurrentList. |
Method Summary | |
java.lang.Object |
getElement()
Returns the content of the item. |
java.lang.Object |
setElement(java.lang.Object element)
Changes the content of the item. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.Object element
ConcurrentItem next
ConcurrentItem previous
transient boolean deleted
transient int iteratorCounter
Constructor Detail |
public ConcurrentItem()
public ConcurrentItem(java.lang.Object element)
element
- the element to put as content of the item.ConcurrentItem(java.lang.Object element, ConcurrentItem next, ConcurrentItem previous)
element
- the element to put as content of the item.next
- the item to follow this item in the ConcurrentList.previous
- the item to preceed this item in the ConcurrentList.Method Detail |
public java.lang.Object setElement(java.lang.Object element)
element
- the element to put as content of the item.
public java.lang.Object getElement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |