public abstract class AbstractIntStack extends AbstractStack<Integer> implements IntStack
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 |
|---|---|
Integer |
peek(int i)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
peekInt(int i)
Peeks at an element on the stack (optional operation).
|
Integer |
pop()
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
popInt()
Pushes the given object on the stack.
|
void |
push(int k)
Pushes the given object on the stack.
|
void |
push(Integer o)
Deprecated.
Please use the corresponding type-specific method instead.
|
Integer |
top()
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
topInt()
Peeks at the top of the stack (optional operation).
|
public void push(int k)
This implementation delegates to the corresponding generic method.
push in interface IntStackStack.push(Object)public int popInt()
This implementation delegates to the corresponding generic method.
popInt in interface IntStackStack.pop()public int topInt()
This implementation delegates to the corresponding generic method.
topInt in interface IntStackStack.top()public int peekInt(int i)
This implementation delegates to the corresponding generic method.
peekInt in interface IntStackStack.peek(int)@Deprecated public void push(Integer o)
This implementation delegates to the corresponding type-specific method.
@Deprecated public Integer pop()
This implementation delegates to the corresponding type-specific method.
@Deprecated public Integer top()
This implementation delegates to the corresponding type-specific method.
@Deprecated public Integer peek(int i)
This implementation just throws an UnsupportedOperationException.
This implementation delegates to the corresponding type-specific method.