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)
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.
|
public void push(Float o)
public Float pop()
public Float top()
public Float peek(int i)
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)