Interface BooleanStack
- All Known Implementing Classes:
AbstractBooleanBigList,AbstractBooleanBigList.BooleanRandomAccessSubList,AbstractBooleanBigList.BooleanSubList,AbstractBooleanList,AbstractBooleanList.BooleanRandomAccessSubList,AbstractBooleanList.BooleanSubList,AbstractBooleanStack,BooleanArrayList,BooleanArrayList.SubList,BooleanBigArrayBigList,BooleanBigLists.ListBigList,BooleanBigLists.Singleton,BooleanImmutableList,BooleanLists.Singleton
-
Method Summary
Modifier and TypeMethodDescriptiondefault Booleanpeek(int i) Deprecated.Please use the corresponding type-specific method instead.booleanpeekBoolean(int i) Peeks at an element on the stack (optional operation).default Booleanpop()Deprecated.Please use the corresponding type-specific method instead.booleanPops the top off the stack.voidpush(boolean k) Pushes the given object on the stack.default voidDeprecated.Please use the corresponding type-specific method instead.default Booleantop()Deprecated.Please use the corresponding type-specific method instead.booleanPeeks at the top of the stack (optional operation).
-
Method Details
-
push
void push(boolean k) Pushes the given object on the stack.- Parameters:
k- the object to push on the stack.- See Also:
-
popBoolean
boolean popBoolean()Pops the top off the stack.- Returns:
- the top of the stack.
- See Also:
-
topBoolean
boolean topBoolean()Peeks at the top of the stack (optional operation).- Returns:
- the top of the stack.
- See Also:
-
peekBoolean
boolean peekBoolean(int i) Peeks at an element on the stack (optional operation).- Parameters:
i- an index from the stop of the stack (0 represents the top).- Returns:
- the
i-th element on the stack. - See Also:
-
push
Deprecated.Please use the corresponding type-specific method instead.Pushes the given object on the stack.This default implementation delegates to the corresponding type-specific method.
-
pop
Deprecated.Please use the corresponding type-specific method instead.Pops the top off the stack.This default implementation delegates to the corresponding type-specific method.
-
top
Deprecated.Please use the corresponding type-specific method instead.Peeks at the top of the stack (optional operation).This default implementation returns
peek(0).This default implementation delegates to the corresponding type-specific method.
-
peek
Deprecated.Please use the corresponding type-specific method instead.Peeks at an element on the stack (optional operation).This default implementation just throws an
UnsupportedOperationException.This default implementation delegates to the corresponding type-specific method.
-