|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object stack.StackDinamico<E>
public class StackDinamico<E>
Constructor Summary | |
---|---|
StackDinamico()
Creates an empty Stack |
Method Summary | |
---|---|
boolean |
empty()
Tests if this stack is empty. |
boolean |
equals(java.lang.Object o)
|
int |
howMany()
Returns the number of elements inside the Stack. |
E |
peek()
Looks at the object at the top of this stack without removing it from the stack. |
E |
pop()
Removes the object at the top of this stack and returns that object as the value of this function. |
E |
push(E item)
Pushes an item onto the top of this stack. |
int |
search(E o)
Returns the 1-based position where an object is on this stack. |
java.lang.String |
toString()
Return a String representation of the Stack and its content. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StackDinamico()
Method Detail |
---|
public boolean empty()
empty
in interface Stack<E>
public E peek()
peek
in interface Stack<E>
public E pop()
pop
in interface Stack<E>
public E push(E item)
push
in interface Stack<E>
public int search(E o)
search
in interface Stack<E>
public int howMany()
howMany
in interface Stack<E>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |