|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dream.AbstractComponent
org.objectweb.dream.queue.ListAddRemoveFirstLastImpl
The ListAddRemoveFirstLastFastImpl class implements the
List
,
ListAddFirstLast
, and
ListRemoveFirstLast
interfaces using a
LinkedList
.
Note: None of the methods in this linked list are synchronized.
Field Summary |
Fields inherited from class org.objectweb.dream.AbstractComponent |
bindingLogger, componentDesc, fcState, firstStart, lifeCycleLogger, logger, weaveableC |
Fields inherited from interface org.objectweb.dream.queue.List |
ITF_NAME |
Fields inherited from interface org.objectweb.dream.queue.ListAddFirstLast |
ITF_NAME |
Fields inherited from interface org.objectweb.dream.queue.ListRemoveFirstLast |
ITF_NAME |
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController |
STARTED, STOPPED |
Constructor Summary | |
ListAddRemoveFirstLastImpl()
|
Method Summary | |
void |
add(Object o)
Adds the specified element to the list. |
void |
addFirst(Object o)
Inserts the given element at the beginning of this list. |
void |
addLast(Object o)
Appends the given element to the end of this list. |
Object |
getFirst()
Returns the first element in this list. |
Object |
getLast()
Returns the last element in this list. |
boolean |
isEmpty()
Returns true if the list is empty. |
String[] |
listFc()
|
Object |
remove()
Removes an object from the list. |
Object |
removeFirst()
Removes and returns the first element from this list. |
Object |
removeLast()
Removes and returns the last element from this list. |
Methods inherited from class org.objectweb.dream.AbstractComponent |
beforeFirstStart, bindFc, getFcState, initComponent, lookupFc, setLogger, startFc, stopFc, unbindFc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ListAddRemoveFirstLastImpl()
Method Detail |
public void add(Object o)
List
add
in interface List
o
- element to be added to this list.List.add(Object)
public Object remove()
List
remove
in interface List
null
if the list is empty.List.remove()
public boolean isEmpty()
List
true
if the list is empty.
isEmpty
in interface List
true
if the list is empty.List.isEmpty()
public void addLast(Object o)
ListAddFirstLast
addLast
in interface ListAddFirstLast
o
- the element to be inserted at the end of this list.ListAddFirstLast.addLast(Object)
public void addFirst(Object o)
ListAddFirstLast
addFirst
in interface ListAddFirstLast
o
- the element to be inserted at the beginning of this list.ListAddFirstLast.addFirst(Object)
public Object getLast()
ListRemoveFirstLast
getLast
in interface ListRemoveFirstLast
ListRemoveFirstLast.getLast()
public Object removeLast()
ListRemoveFirstLast
removeLast
in interface ListRemoveFirstLast
ListRemoveFirstLast.removeLast()
public Object getFirst()
ListRemoveFirstLast
getFirst
in interface ListRemoveFirstLast
ListRemoveFirstLast.getFirst()
public Object removeFirst()
ListRemoveFirstLast
removeFirst
in interface ListRemoveFirstLast
ListRemoveFirstLast.removeFirst()
public String[] listFc()
listFc
in interface BindingController
BindingController.listFc()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |