public interface BooleanStack extends Stack<Boolean>
Stack; provides some additional methods that use
polymorphism to avoid (un)boxing.| 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).
|
void push(boolean k)
Stack.push(Object)boolean popBoolean()
Stack.pop()boolean topBoolean()
Stack.top()boolean peekBoolean(int i)
Stack.peek(int)@Deprecated void push(Boolean o)
@Deprecated Boolean pop()
@Deprecated Boolean top()
@Deprecated Boolean peek(int i)