| org.archive.queue.Stack
Stack | public interface Stack (Code) | | Simple Stack: supports add and remove at top.
author: gojomo |
height | public long height()(Code) | | Number of items in the Stack.
|
isEmpty | public boolean isEmpty()(Code) | | True if empty. |
peek | public Object peek()(Code) | | Return item from top of Stack without removing it. |
pop | public Object pop()(Code) | | Remove and return item from top of Stack
Item removed from top of Stack |
push | public void push(Object object)(Code) | | Add object to top of Stack
Parameters: object - |
release | public void release()(Code) | | Release any OS resources, if necessary.
|
|
|