Package org.dmfs.jems2.stack
Class SingleStack<Element>
java.lang.Object
org.dmfs.jems2.stack.SingleStack<Element>
- Type Parameters:
Element- The type of the element on thisStack.
- All Implemented Interfaces:
Stack<Element>
A
Stack of a single element.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.dmfs.jems2.Stack
Stack.StackTop<Element> -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SingleStack
-
SingleStack
-
-
Method Details
-
top
Description copied from interface:StackRetrieves the top of this Stack. If the stack is empty theStack.StackTopwill be absent.
-