|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.AbstractStack<java.lang.Short>
it.unimi.dsi.fastutil.shorts.AbstractShortStack
public abstract class AbstractShortStack
An abstract class providing basic methods for implementing a type-specific stack interface.
To create a type-specific stack, you need both object methods and primitive-type methods. However, if you inherit from this class you need just one (anyone).
| Method Summary | |
|---|---|
java.lang.Short |
peek(int i)
Delegates to the corresponding type-specific method. |
short |
peekShort(int i)
Delegates to the corresponding generic method. |
java.lang.Short |
pop()
Delegates to the corresponding type-specific method. |
short |
popShort()
Delegates to the corresponding generic method. |
void |
push(short k)
Delegates to the corresponding generic method. |
void |
push(java.lang.Short o)
Delegates to the corresponding type-specific method. |
java.lang.Short |
top()
Delegates to the corresponding type-specific method. |
short |
topShort()
Delegates to the corresponding generic method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
|---|
isEmpty |
| Method Detail |
|---|
public void push(java.lang.Short o)
push in interface Stack<java.lang.Short>o - the object that will become the new top of the stack.public java.lang.Short pop()
pop in interface Stack<java.lang.Short>public java.lang.Short top()
top in interface Stack<java.lang.Short>top in class AbstractStack<java.lang.Short>public java.lang.Short peek(int i)
peek in interface Stack<java.lang.Short>peek in class AbstractStack<java.lang.Short>i-th element on the stack; 0 represents the top.public void push(short k)
push in interface ShortStackStack.push(Object)public short popShort()
popShort in interface ShortStackStack.pop()public short topShort()
topShort in interface ShortStackStack.top()public short peekShort(int i)
peekShort in interface ShortStackStack.peek(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||