|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.AbstractStack<Float>
it.unimi.dsi.fastutil.floats.AbstractFloatStack
public abstract class AbstractFloatStack
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 | |
|---|---|
Float |
peek(int i)
Delegates to the corresponding type-specific method. |
float |
peekFloat(int i)
Delegates to the corresponding generic method. |
Float |
pop()
Delegates to the corresponding type-specific method. |
float |
popFloat()
Delegates to the corresponding generic method. |
void |
push(float k)
Delegates to the corresponding generic method. |
void |
push(Float o)
Delegates to the corresponding type-specific method. |
Float |
top()
Delegates to the corresponding type-specific method. |
float |
topFloat()
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(Float o)
push in interface Stack<Float>o - the object that will become the new top of the stack.public Float pop()
pop in interface Stack<Float>public Float top()
top in interface Stack<Float>top in class AbstractStack<Float>public Float peek(int i)
peek in interface Stack<Float>peek in class AbstractStack<Float>i-th element on the stack; 0 represents the top.public void push(float k)
push in interface FloatStackStack.push(Object)public float popFloat()
popFloat in interface FloatStackStack.pop()public float topFloat()
topFloat in interface FloatStackStack.top()public float peekFloat(int i)
peekFloat in interface FloatStackStack.peek(int)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||