Interface Buffer

    • Method Detail

      • remove

        Object remove()
        Gets and removes the next object from the buffer.
        Returns:
        the next object in the buffer, which is also removed
        Throws:
        BufferUnderflowException - if the buffer is already empty
      • get

        Object get()
        Gets the next object from the buffer without removing it.
        Returns:
        the next object in the buffer, which is not removed
        Throws:
        BufferUnderflowException - if the buffer is empty