|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.AbstractStack<Boolean>
it.unimi.dsi.fastutil.booleans.AbstractBooleanStack
public abstract class AbstractBooleanStack
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 |
AbstractBooleanStack()
|
Method Summary | |
---|---|
Boolean |
peek(int i)
Delegates to the corresponding type-specific method. |
boolean |
peekBoolean(int i)
Delegates to the corresponding generic method. |
Boolean |
pop()
Delegates to the corresponding type-specific method. |
boolean |
popBoolean()
Delegates to the corresponding generic method. |
void |
push(boolean k)
Delegates to the corresponding generic method. |
void |
push(Boolean o)
Delegates to the corresponding type-specific method. |
Boolean |
top()
Delegates to the corresponding type-specific method. |
boolean |
topBoolean()
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 AbstractBooleanStack()
Method Detail |
---|
public void push(Boolean o)
push
in interface Stack<Boolean>
o
- the object that will become the new top of the stack.public Boolean pop()
pop
in interface Stack<Boolean>
public Boolean top()
top
in interface Stack<Boolean>
top
in class AbstractStack<Boolean>
public Boolean peek(int i)
peek
in interface Stack<Boolean>
peek
in class AbstractStack<Boolean>
i
-th element on the stack; 0 represents the top.public void push(boolean k)
push
in interface BooleanStack
Stack.push(Object)
public boolean popBoolean()
popBoolean
in interface BooleanStack
Stack.pop()
public boolean topBoolean()
topBoolean
in interface BooleanStack
Stack.top()
public boolean peekBoolean(int i)
peekBoolean
in interface BooleanStack
Stack.peek(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |