public abstract class AbstractLongStack extends AbstractStack<Long> implements LongStack
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 |
|---|---|
Long |
peek(int i)
Delegates to the corresponding type-specific method.
|
long |
peekLong(int i)
Delegates to the corresponding generic method.
|
Long |
pop()
Delegates to the corresponding type-specific method.
|
long |
popLong()
Delegates to the corresponding generic method.
|
void |
push(long k)
Delegates to the corresponding generic method.
|
void |
push(Long o)
Delegates to the corresponding type-specific method.
|
Long |
top()
Delegates to the corresponding type-specific method.
|
long |
topLong()
Delegates to the corresponding generic method.
|
public void push(Long o)
public Long pop()
public Long top()
public Long peek(int i)
public void push(long k)
push in interface LongStackStack.push(Object)public long popLong()
popLong in interface LongStackStack.pop()public long topLong()
topLong in interface LongStackStack.top()public long peekLong(int i)
peekLong in interface LongStackStack.peek(int)