E - the type of elements in the stackpublic class ConcurrentLinkedActivationStack<E> extends Object implements ActivationStack<E>
null values.| Constructor and Description |
|---|
ConcurrentLinkedActivationStack() |
| Modifier and Type | Method and Description |
|---|---|
E |
peek()
Returns but does not remove the head element of the stack.
|
E |
pop()
Takes and removes the head element of the stack.
|
boolean |
push(E element)
Inserts the given element at the head of the stack.
|
public boolean push(E element)
ActivationStacktrue
if this is the first element inserted after the stack has been cleared. A
stack is clear in the beginning and is cleared every time ActivationStack.pop()
returns null. Note that the stack might be empty in the sense
that ActivationStack.pop() would return null, but not cleared.push in interface ActivationStack<E>element - the element to be inserted at the head of the stacktrue if this is the first element inserted after the
stack has been cleared.public E peek()
ActivationStackpeek in interface ActivationStack<E>null if there are no
elements in the stackpublic E pop()
ActivationStackpop in interface ActivationStack<E>null if there are no
elements in the stackCopyright © 2011–2024 Live Ontologies Project. All rights reserved.