|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.AbstractStack<Byte>
it.unimi.dsi.fastutil.bytes.AbstractByteStack
public abstract class AbstractByteStack
An abstract class providing basic methods for implementing a type-specific stack interface.
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).
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
|---|
isEmpty |
| Method Detail |
|---|
public void push(Byte o)
push in interface Stack<Byte>o - the object that will become the new top of the stack.public Byte pop()
pop in interface Stack<Byte>public Byte top()
top in interface Stack<Byte>top in class AbstractStack<Byte>public Byte peek(int i)
peek in interface Stack<Byte>peek in class AbstractStack<Byte>i-th element on the stack; 0 represents the top.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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||