public abstract class AbstractFloatStack extends AbstractStack<Float> implements FloatStack
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).
| Modifier and Type | Method and Description |
|---|---|
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).
|
Float |
pop()
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
popFloat()
Pushes the given object on the stack.
|
void |
push(float k)
Pushes the given object on the stack.
|
void |
push(Float o)
Deprecated.
Please use the corresponding type-specific method instead.
|
Float |
top()
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
topFloat()
Peeks at the top of the stack (optional operation).
|
public void push(float k)
This implementation delegates to the corresponding generic method.
push in interface FloatStackStack.push(Object)public float popFloat()
This implementation delegates to the corresponding generic method.
popFloat in interface FloatStackStack.pop()public float topFloat()
This implementation delegates to the corresponding generic method.
topFloat in interface FloatStackStack.top()public float peekFloat(int i)
This implementation delegates to the corresponding generic method.
peekFloat in interface FloatStackStack.peek(int)@Deprecated public void push(Float o)
This implementation delegates to the corresponding type-specific method.
push in interface FloatStackpush in interface Stack<Float>o - the object that will become the new top of the stack.@Deprecated public Float pop()
This implementation delegates to the corresponding type-specific method.
pop in interface FloatStackpop in interface Stack<Float>@Deprecated public Float top()
This implementation delegates to the corresponding type-specific method.
top in interface FloatStacktop in interface Stack<Float>top in class AbstractStack<Float>@Deprecated public Float peek(int i)
This implementation just throws an UnsupportedOperationException.
This implementation delegates to the corresponding type-specific method.
peek in interface FloatStackpeek in interface Stack<Float>peek in class AbstractStack<Float>i - an index from the stop of the stack (0 represents the top).i-th element on the stack.