E - the type of elements in the stackpublic class ActivationStack<E> extends Object
null values.public boolean push(E element)
true
if this is the first element inserted after the stack has been cleared. A
stack is cleared after it has been constructed or after pop()
returns null. Note that the stack might be empty in the sense
that the next call to pop() should return null, but not
cleared. In this case the stack is cleared only after pop()
returns null.element - true if this is the first element inserted after the
stack has been cleared.IllegalArgumentException - if null element is insertedpublic E peek()
public E pop()
null if there are no
elements in the stackCopyright © 2011-2015 Department of Computer Science, University of Oxford. All Rights Reserved.