public interface BooleanStack extends Stack<java.lang.Boolean>
Stack that reduces (un)boxing| Modifier and Type | Method and Description |
|---|---|
default java.lang.Boolean |
peek(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
peekBoolean(int index)
Provides the Selected Object from the stack.
|
default java.lang.Boolean |
pop()
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
popBoolean()
Removes the Object on top of the stack.
|
default void |
push(java.lang.Boolean e)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
pushBoolean(boolean e)
Inserts a given Object on top of the stack
|
default java.lang.Boolean |
top()
Deprecated.
Please use the corresponding type-specific function instead.
|
default boolean |
topBoolean()
Provides the Object on top of the stack
|
void pushBoolean(boolean e)
e - the Object to insertStack.push(Object)boolean popBoolean()
java.lang.ArrayIndexOutOfBoundsException - if the stack is emptyStack.pop()default boolean topBoolean()
java.lang.ArrayIndexOutOfBoundsException - if the stack is emptyStack.top()boolean peekBoolean(int index)
index - of the element that should be providedjava.lang.ArrayIndexOutOfBoundsException - if the index is out of boundsStack.peek(int)@Deprecated default void push(java.lang.Boolean e)
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Boolean pop()
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Boolean top()
This default implementation delegates to the corresponding type-specific function.
@Deprecated default java.lang.Boolean peek(int index)
This default implementation delegates to the corresponding type-specific function.