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)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
peekLong(int i)
Peeks at an element on the stack (optional operation).
|
Long |
pop()
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
popLong()
Pushes the given object on the stack.
|
void |
push(long k)
Pushes the given object on the stack.
|
void |
push(Long o)
Deprecated.
Please use the corresponding type-specific method instead.
|
Long |
top()
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
topLong()
Peeks at the top of the stack (optional operation).
|
public void push(long k)
This implementation delegates to the corresponding generic method.
push in interface LongStackStack.push(Object)public long popLong()
This implementation delegates to the corresponding generic method.
popLong in interface LongStackStack.pop()public long topLong()
This implementation delegates to the corresponding generic method.
topLong in interface LongStackStack.top()public long peekLong(int i)
This implementation delegates to the corresponding generic method.
peekLong in interface LongStackStack.peek(int)@Deprecated public void push(Long o)
This implementation delegates to the corresponding type-specific method.
@Deprecated public Long pop()
This implementation delegates to the corresponding type-specific method.
@Deprecated public Long top()
This implementation delegates to the corresponding type-specific method.
@Deprecated public Long peek(int i)
This implementation just throws an UnsupportedOperationException.
This implementation delegates to the corresponding type-specific method.