Interface BooleanStack

All Superinterfaces:
it.unimi.dsi.fastutil.Stack<java.lang.Boolean>
All Known Implementing Classes:
AbstractBooleanBigList, AbstractBooleanBigList.BooleanRandomAccessSubList, AbstractBooleanBigList.BooleanSubList, AbstractBooleanList, AbstractBooleanList.BooleanRandomAccessSubList, AbstractBooleanList.BooleanSubList, AbstractBooleanStack, BooleanArrayList, BooleanBigArrayBigList, BooleanBigLists.ListBigList, BooleanBigLists.Singleton, BooleanImmutableList, BooleanLists.Singleton

public interface BooleanStack
extends it.unimi.dsi.fastutil.Stack<java.lang.Boolean>
A type-specific Stack; provides some additional methods that use polymorphism to avoid (un)boxing.
  • Method Summary

    Modifier and Type Method Description
    default java.lang.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).
    default java.lang.Boolean pop()
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean popBoolean()
    Pops the top off the stack.
    void push​(boolean k)
    Pushes the given object on the stack.
    default void push​(java.lang.Boolean o)
    Deprecated.
    Please use the corresponding type-specific method instead.
    default java.lang.Boolean top()
    Deprecated.
    Please use the corresponding type-specific method instead.
    boolean topBoolean()
    Peeks at the top of the stack (optional operation).

    Methods inherited from interface it.unimi.dsi.fastutil.Stack

    isEmpty
  • 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:
      Stack.push(Object)
    • popBoolean

      boolean popBoolean()
      Pops the top off the stack.
      Returns:
      the top of the stack.
      See Also:
      Stack.pop()
    • topBoolean

      boolean topBoolean()
      Peeks at the top of the stack (optional operation).
      Returns:
      the top of the stack.
      See Also:
      Stack.top()
    • 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:
      Stack.peek(int)
    • push

      @Deprecated default void push​(java.lang.Boolean o)
      Deprecated.
      Please use the corresponding type-specific method instead.

      This default implementation delegates to the corresponding type-specific method.

      Specified by:
      push in interface it.unimi.dsi.fastutil.Stack<java.lang.Boolean>
    • pop

      @Deprecated default java.lang.Boolean pop()
      Deprecated.
      Please use the corresponding type-specific method instead.

      This default implementation delegates to the corresponding type-specific method.

      Specified by:
      pop in interface it.unimi.dsi.fastutil.Stack<java.lang.Boolean>
    • top

      @Deprecated default java.lang.Boolean top()
      Deprecated.
      Please use the corresponding type-specific method instead.

      This default implementation delegates to the corresponding type-specific method.

      Specified by:
      top in interface it.unimi.dsi.fastutil.Stack<java.lang.Boolean>
    • peek

      @Deprecated default java.lang.Boolean peek​(int i)
      Deprecated.
      Please use the corresponding type-specific method instead.

      This default implementation delegates to the corresponding type-specific method.

      Specified by:
      peek in interface it.unimi.dsi.fastutil.Stack<java.lang.Boolean>