Package: org.codehaus.groovy.util

## [Java] Class ListBufferedIterator<T>

- org.codehaus.groovy.util.ListBufferedIterator

- All Implemented Interfaces and Traits:
    BufferedIterator

      public class ListBufferedIterator<T>
      extends Object
      implements BufferedIterator

  An implementation for BufferedIterator wraps ListIterator. This version provides an implementation for remove().

  Since:
    2.5.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `ListBufferedIterator(List<T> list)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public boolean` | `hasNext()`
    `` | `public T` | `head()` Return the next element to be returned by next() without consuming it.
    `` | `public T` | `next()`
    `` | `public void` | `remove()`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Constructor Detail

    - #### public ListBufferedIterator(List<T> list)

  - ### Method Detail

    - #### @Override public boolean hasNext()

    - #### @Override public T head()

      Return the next element to be returned by next() without consuming it.

    - #### @Override public T next()

    - #### @Override public void remove()