|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.AbstractStack<Long>
it.unimi.dsi.fastutil.longs.AbstractLongStack
public abstract class AbstractLongStack
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).
Constructor Summary | |
---|---|
protected |
AbstractLongStack()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.Stack |
---|
isEmpty |
Constructor Detail |
---|
protected AbstractLongStack()
Method Detail |
---|
public void push(Long o)
push
in interface Stack<Long>
o
- the object that will become the new top of the stack.public Long pop()
pop
in interface Stack<Long>
public Long top()
top
in interface Stack<Long>
top
in class AbstractStack<Long>
public Long peek(int i)
peek
in interface Stack<Long>
peek
in class AbstractStack<Long>
i
-th element on the stack; 0 represents the top.public void push(long k)
push
in interface LongStack
Stack.push(Object)
public long popLong()
popLong
in interface LongStack
Stack.pop()
public long topLong()
topLong
in interface LongStack
Stack.top()
public long peekLong(int i)
peekLong
in interface LongStack
Stack.peek(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |