|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.LinkedListStack
public class LinkedListStack
Provides a stack implementation based upon a LinkedList
.
Constructor Summary | |
---|---|
LinkedListStack()
|
Method Summary | |
---|---|
void |
clear()
Clear this collection. |
Object |
get(int index)
Return the object at the given index. |
boolean |
isEmpty()
Return true if this collection is empty. |
Object |
peek()
Looks at the object at the top of this stack without removing it from the stack. |
Object |
pop()
Removes the object at the top of this stack and returns that object as the value of this function. |
void |
push(Object item)
Pushes an item onto the top of this stack. |
int |
size()
Return the size of this collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkedListStack()
Method Detail |
---|
public void clear()
clear
in interface IStack
public Object get(int index)
get
in interface IStack
public boolean isEmpty()
isEmpty
in interface IStack
public Object peek()
peek
in interface IStack
public Object pop()
pop
in interface IStack
public void push(Object item)
push
in interface IStack
public int size()
size
in interface IStack
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |