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