|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.common.utils.Stack<E>
public class Stack<E>
Stack.
Constructor Summary | |
---|---|
Stack()
|
Method Summary | |
---|---|
void |
clear()
clear stack. |
E |
get(int index)
get. |
boolean |
isEmpty()
is empty. |
E |
peek()
peek. |
E |
pop()
pop. |
void |
push(E ele)
push. |
E |
remove(int index)
remove. |
E |
set(int index,
E value)
set. |
int |
size()
get stack size. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Stack()
Method Detail |
---|
public void push(E ele)
ele
- public E pop()
public E peek()
public E get(int index)
index
- index.
public E set(int index, E value)
index
- index.value
- element.
public E remove(int index)
index
-
public int size()
public boolean isEmpty()
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |