org.eclipse.january.dataset

## Class NullIterator

- java.lang.Object
- - org.eclipse.january.dataset.IndexIterator
  - - org.eclipse.january.dataset.SliceIterator
    - - org.eclipse.january.dataset.NullIterator

-     public class NullIterator
      extends SliceIterator

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.january.dataset.IndexIterator

      `index`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NullIterator()`
    `NullIterator(int[] shape, int[] sshape)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int[]` | `getPos()` Returns the current position of the iterator.
    `boolean` | `hasNext()` Returns `true` if there is an other element after the current Slice.
    `void` | `reset()` Reset the Iterator to the first Slice.

    - ### Methods inherited from class org.eclipse.january.dataset.SliceIterator

      `getShape, getStart, getStep, setStart`

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

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

- - ### Constructor Detail

    - #### NullIterator

          public NullIterator()

      Since:
        2.3

    - #### NullIterator

          public NullIterator(int[] shape,
                              int[] sshape)

      Parameters:
        `shape` - shape of dataset
        `sshape` - shape of slice

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      Description copied from class: `SliceIterator`
      Returns `true` if there is an other element after the current Slice.
      Overrides:
        `hasNext` in class `SliceIterator`
      Returns:
        Returns `true` if the iteration has more Slice, `false` in the other case

    - #### getPos

          public int[] getPos()

      Description copied from class: `SliceIterator`
      Returns the current position of the iterator.
      Overrides:
        `getPos` in class `SliceIterator`
      Returns:
        Iterator current position

    - #### reset

          public void reset()

      Description copied from class: `SliceIterator`
      Reset the Iterator to the first Slice.
      Overrides:
        `reset` in class `SliceIterator`

Copyright © 2014–2022 Eclipse Foundation. All rights reserved.