Stack.StackTop<Element>| Constructor and Description |
|---|
EmptyStack() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Stack.StackTop<Element>> |
top()
Retrieves the top of this Stack.
|
public Optional<Stack.StackTop<Element>> top()
StackStack.StackTop will be absent.top in interface Stack<Element>Optional Stack.StackTop.