Class NonZeroIterator

java.lang.Object
org.ujmp.core.util.NonZeroIterator
All Implemented Interfaces:
Iterator<long[]>

class NonZeroIterator extends Object implements Iterator<long[]>
  • Field Details

    • indices

      private final long[] indices
    • valueCount

      private final int valueCount
    • coordinates

      private final long[] coordinates
    • currentPos

      private int currentPos
  • Constructor Details

    • NonZeroIterator

      public NonZeroIterator(long[] indices, int valueCount)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<long[]>
    • next

      public long[] next()
      Specified by:
      next in interface Iterator<long[]>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<long[]>