Interface IntStack

    • Method Detail

      • peek

        int peek()
        Returns the top of the stack.
      • peek

        IntList peek​(int count)
        Returns IntList of the number of elements specified by the count, beginning with the top of the stack.
      • peekAt

        int peekAt​(int index)
        Returns the element at the specified index.
        Parameters:
        index - the location to peek into
      • equals

        boolean equals​(java.lang.Object o)
        Follows the same general contract as StackIterable.equals(Object).
        Overrides:
        equals in class java.lang.Object
      • hashCode

        int hashCode()
        Follows the same general contract as StackIterable.hashCode().
        Overrides:
        hashCode in class java.lang.Object