Interface Buffer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object get()
      Gets the next object from the buffer without removing it.
      java.lang.Object remove()
      Gets and removes the next object from the buffer.
      • Methods inherited from interface java.util.Collection

        add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Method Detail

      • remove

        java.lang.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

        java.lang.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