Package ghidra.trace.util

# Class WrappingDataIterator

java.lang.Object
ghidra.trace.util.WrappingDataIterator

All Implemented Interfaces:
  `DataIterator`, `Iterable<Data>`, `Iterator<Data>`

public class WrappingDataIterator extends Object implements DataIterator

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from interface ghidra.program.model.listing.DataIterator

  `DataIterator.IteratorWrapper`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected final Iterator<? extends Data>`
  `it`

  ### Fields inherited from interface ghidra.program.model.listing.DataIterator

  `EMPTY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `WrappingDataIterator(Iterator<? extends Data> it)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `hasNext()`
  `Iterator<Data>`
  `iterator()`
  `Data`
  `next()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

  ### Methods inherited from interface java.lang.Iterable

  `forEach, spliterator`

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining, remove`

- ## Field Details

  - ### it

    protected final Iterator<? extends Data> it

- ## Constructor Details

  - ### WrappingDataIterator

    public WrappingDataIterator(Iterator<? extends Data> it)

- ## Method Details

  - ### iterator

    public Iterator<Data> iterator()
    Specified by:
      `iterator` in interface `DataIterator`
    Specified by:
      `iterator` in interface `Iterable<Data>`

  - ### hasNext

    public boolean hasNext()
    Specified by:
      `hasNext` in interface `DataIterator`
    Specified by:
      `hasNext` in interface `Iterator<Data>`

  - ### next

    public Data next()
    Specified by:
      `next` in interface `DataIterator`
    Specified by:
      `next` in interface `Iterator<Data>`