public abstract class AbstractBooleanStack extends AbstractStack<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 |
|---|---|
Boolean |
peek(int i)
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
peekBoolean(int i)
Peeks at an element on the stack (optional operation).
|
Boolean |
pop()
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
popBoolean()
Pushes the given object on the stack.
|
void |
push(boolean k)
Pushes the given object on the stack.
|
void |
push(Boolean o)
Deprecated.
Please use the corresponding type-specific method instead.
|
Boolean |
top()
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
topBoolean()
Peeks at the top of the stack (optional operation).
|
public void push(boolean k)
This implementation delegates to the corresponding generic method.
push in interface BooleanStackStack.push(Object)public boolean popBoolean()
This implementation delegates to the corresponding generic method.
popBoolean in interface BooleanStackStack.pop()public boolean topBoolean()
This implementation delegates to the corresponding generic method.
topBoolean in interface BooleanStackStack.top()public boolean peekBoolean(int i)
This implementation delegates to the corresponding generic method.
peekBoolean in interface BooleanStackStack.peek(int)@Deprecated public void push(Boolean o)
This implementation delegates to the corresponding type-specific method.
push in interface BooleanStackpush in interface Stack<Boolean>o - the object that will become the new top of the stack.@Deprecated public Boolean pop()
This implementation delegates to the corresponding type-specific method.
pop in interface BooleanStackpop in interface Stack<Boolean>@Deprecated public Boolean top()
This implementation delegates to the corresponding type-specific method.
top in interface BooleanStacktop in interface Stack<Boolean>top in class AbstractStack<Boolean>@Deprecated public Boolean peek(int i)
This implementation just throws an UnsupportedOperationException.
This implementation delegates to the corresponding type-specific method.
peek in interface BooleanStackpeek in interface Stack<Boolean>peek in class AbstractStack<Boolean>i - an index from the stop of the stack (0 represents the top).i-th element on the stack.