public abstract class AbstractByteStack extends AbstractStack<Byte> implements ByteStack
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 |
|---|---|
Byte |
peek(int i)
Deprecated.
Please use the corresponding type-specific method instead.
|
byte |
peekByte(int i)
Peeks at an element on the stack (optional operation).
|
Byte |
pop()
Deprecated.
Please use the corresponding type-specific method instead.
|
byte |
popByte()
Pushes the given object on the stack.
|
void |
push(byte k)
Pushes the given object on the stack.
|
void |
push(Byte o)
Deprecated.
Please use the corresponding type-specific method instead.
|
Byte |
top()
Deprecated.
Please use the corresponding type-specific method instead.
|
byte |
topByte()
Peeks at the top of the stack (optional operation).
|
public void push(byte k)
This implementation delegates to the corresponding generic method.
push in interface ByteStackStack.push(Object)public byte popByte()
This implementation delegates to the corresponding generic method.
popByte in interface ByteStackStack.pop()public byte topByte()
This implementation delegates to the corresponding generic method.
topByte in interface ByteStackStack.top()public byte peekByte(int i)
This implementation delegates to the corresponding generic method.
peekByte in interface ByteStackStack.peek(int)@Deprecated public void push(Byte o)
This implementation delegates to the corresponding type-specific method.
@Deprecated public Byte pop()
This implementation delegates to the corresponding type-specific method.
@Deprecated public Byte top()
This implementation delegates to the corresponding type-specific method.
@Deprecated public Byte peek(int i)
This implementation just throws an UnsupportedOperationException.
This implementation delegates to the corresponding type-specific method.