public abstract class AbstractBooleanStack extends AbstractStack<java.lang.Boolean> implements BooleanStack
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 |
|---|---|
java.lang.Boolean |
peek(int i)
Delegates to the corresponding type-specific method.
|
boolean |
peekBoolean(int i)
Delegates to the corresponding generic method.
|
java.lang.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(java.lang.Boolean o)
Delegates to the corresponding type-specific method.
|
java.lang.Boolean |
top()
Delegates to the corresponding type-specific method.
|
boolean |
topBoolean()
Delegates to the corresponding generic method.
|
public void push(java.lang.Boolean o)
public java.lang.Boolean pop()
public java.lang.Boolean top()
top in interface Stack<java.lang.Boolean>top in class AbstractStack<java.lang.Boolean>public java.lang.Boolean peek(int i)
peek in interface Stack<java.lang.Boolean>peek in class AbstractStack<java.lang.Boolean>i - an index from the stop of the stack (0 represents the top).i-th element on the stack.public void push(boolean k)
push in interface BooleanStackStack.push(Object)public boolean popBoolean()
popBoolean in interface BooleanStackStack.pop()public boolean topBoolean()
topBoolean in interface BooleanStackStack.top()public boolean peekBoolean(int i)
peekBoolean in interface BooleanStackStack.peek(int)