Package org.dmfs.jems2.stack
Class SingleStack<Element>
- java.lang.Object
-
- org.dmfs.jems2.stack.SingleStack<Element>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.dmfs.jems2.Stack
Stack.StackTop<Element>
-
-
Constructor Summary
Constructors Constructor Description SingleStack(Element value)SingleStack(Single<Element> value)
-
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.
-
-