E - the type of elements maintained by this stackpublic interface PStack<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
anyMatch(Predicate<E> predicate) |
void |
forEach(Consumer<E> action)
Performs the given action for each element in this stack until all elements have been processed or the action throws an exception.
|
boolean |
isEmpty() |
E |
peek() |
PStack<E> |
pop() |
PStack<E> |
push(E e) |
String |
toString() |
E peek()
IllegalStateException - if this stack is empty.PStack<E> pop()
IllegalStateException - if this stack is empty.boolean isEmpty()
void forEach(Consumer<E> action)
Copyright © 2012–2017 SonarSource. All rights reserved.