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)
Delegates to the corresponding type-specific method.
|
byte |
peekByte(int i)
Delegates to the corresponding generic method.
|
Byte |
pop()
Delegates to the corresponding type-specific method.
|
byte |
popByte()
Delegates to the corresponding generic method.
|
void |
push(byte k)
Delegates to the corresponding generic method.
|
void |
push(Byte o)
Delegates to the corresponding type-specific method.
|
Byte |
top()
Delegates to the corresponding type-specific method.
|
byte |
topByte()
Delegates to the corresponding generic method.
|
public void push(Byte o)
public Byte pop()
public Byte top()
public Byte peek(int i)
public void push(byte k)
push in interface ByteStackStack.push(Object)public byte popByte()
popByte in interface ByteStackStack.pop()public byte topByte()
topByte in interface ByteStackStack.top()public byte peekByte(int i)
peekByte in interface ByteStackStack.peek(int)