E - the type of elements with which this stack workspublic interface ActivationStack<E>
null.| 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.
|
boolean push(E element)
true
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 pop()
returns null. Note that the stack might be empty in the sense
that pop() would return null, but not cleared.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.IllegalArgumentException - if null element is insertedE pop()
null if there are no
elements in the stackE peek()
null if there are no
elements in the stackCopyright © 2011–2024 Live Ontologies Project. All rights reserved.