Package org.dmfs.jems2.stack
Class EmptyStack<Element>
- java.lang.Object
-
- org.dmfs.jems2.stack.EmptyStack<Element>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.dmfs.jems2.Stack
Stack.StackTop<Element>
-
-
Constructor Summary
Constructors Constructor Description EmptyStack()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Stack.StackTop<Element>>top()Retrieves the top of this Stack.
-
-
-
Method Detail
-
top
public Optional<Stack.StackTop<Element>> top()
Description copied from interface:StackRetrieves the top of this Stack. If the stack is empty theStack.StackTopwill be absent.
-
-