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)
Delegates to the corresponding type-specific method.
|
int |
peekInt(int i)
Delegates to the corresponding generic method.
|
Integer |
pop()
Delegates to the corresponding type-specific method.
|
int |
popInt()
Delegates to the corresponding generic method.
|
void |
push(int k)
Delegates to the corresponding generic method.
|
void |
push(Integer o)
Delegates to the corresponding type-specific method.
|
Integer |
top()
Delegates to the corresponding type-specific method.
|
int |
topInt()
Delegates to the corresponding generic method.
|
public void push(Integer o)
public Integer pop()
public Integer top()
public Integer peek(int i)
public void push(int k)
push in interface IntStackStack.push(Object)public int popInt()
popInt in interface IntStackStack.pop()public int topInt()
topInt in interface IntStackStack.top()public int peekInt(int i)
peekInt in interface IntStackStack.peek(int)