Stack<java.lang.Float>AbstractFloatBigList, AbstractFloatBigList.FloatSubList, AbstractFloatList, AbstractFloatList.FloatSubList, AbstractFloatStack, FloatArrayList, FloatBigArrayBigList, FloatBigLists.ListBigList, FloatBigLists.Singleton, FloatLists.Singletonpublic interface FloatStack extends Stack<java.lang.Float>
Stack; provides some additional methods that use
polymorphism to avoid (un)boxing.| Modifier and Type | Method | Description |
|---|---|---|
default java.lang.Float |
peek(int i) |
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
peekFloat(int i) |
Peeks at an element on the stack (optional operation).
|
default java.lang.Float |
pop() |
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
popFloat() |
Pops the top off the stack.
|
void |
push(float k) |
Pushes the given object on the stack.
|
default void |
push(java.lang.Float o) |
Deprecated.
Please use the corresponding type-specific method instead.
|
default java.lang.Float |
top() |
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
topFloat() |
Peeks at the top of the stack (optional operation).
|
void push(float k)
k - the object to push on the stack.Stack.push(Object)float popFloat()
Stack.pop()float topFloat()
Stack.top()float peekFloat(int i)
i - an index from the stop of the stack (0 represents the top).i-th element on the stack.Stack.peek(int)@Deprecated default void push(java.lang.Float o)
This default implementation delegates to the corresponding type-specific method.
@Deprecated default java.lang.Float pop()
This default implementation delegates to the corresponding type-specific method.
@Deprecated default java.lang.Float top()
This default implementation returns peek(0).
This default implementation delegates to the corresponding type-specific method.
@Deprecated default java.lang.Float peek(int i)
This default implementation just throws an UnsupportedOperationException.
This default implementation delegates to the corresponding type-specific method.