Interface ByteStack

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods 
      Modifier and Type Method Description
      default java.lang.Byte peek​(int i)
      Deprecated.
      Please use the corresponding type-specific method instead.
      byte peekByte​(int i)
      Peeks at an element on the stack (optional operation).
      default java.lang.Byte pop()
      Deprecated.
      Please use the corresponding type-specific method instead.
      byte popByte()
      Pops the top off the stack.
      void push​(byte k)
      Pushes the given object on the stack.
      default void push​(java.lang.Byte o)
      Deprecated.
      Please use the corresponding type-specific method instead.
      default java.lang.Byte top()
      Deprecated.
      Please use the corresponding type-specific method instead.
      byte topByte()
      Peeks at the top of the stack (optional operation).
      • Methods inherited from interface it.unimi.dsi.fastutil.Stack

        isEmpty
    • Method Detail

      • push

        void push​(byte k)
        Pushes the given object on the stack.
        Parameters:
        k - the object to push on the stack.
        See Also:
        Stack.push(Object)
      • popByte

        byte popByte()
        Pops the top off the stack.
        Returns:
        the top of the stack.
        See Also:
        Stack.pop()
      • topByte

        byte topByte()
        Peeks at the top of the stack (optional operation).
        Returns:
        the top of the stack.
        See Also:
        Stack.top()
      • peekByte

        byte peekByte​(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.Byte o)
        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.

        Specified by:
        push in interface Stack<java.lang.Byte>
        Parameters:
        o - the object that will become the new top of the stack.
      • pop

        @Deprecated
        default java.lang.Byte 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.

        Specified by:
        pop in interface Stack<java.lang.Byte>
        Returns:
        the top of the stack.
      • top

        @Deprecated
        default java.lang.Byte 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.

        Specified by:
        top in interface Stack<java.lang.Byte>
        Returns:
        the top of the stack.
      • peek

        @Deprecated
        default java.lang.Byte peek​(int i)
        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.

        Specified by:
        peek in interface Stack<java.lang.Byte>
        Parameters:
        i - an index from the stop of the stack (0 represents the top).
        Returns:
        the i-th element on the stack.