Class NonZeroIterator

  • All Implemented Interfaces:
    java.util.Iterator<long[]>

    class NonZeroIterator
    extends java.lang.Object
    implements java.util.Iterator<long[]>
    • Constructor Summary

      Constructors 
      Constructor Description
      NonZeroIterator​(long[] indices, int valueCount)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      long[] next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Field Detail

      • indices

        private final long[] indices
      • valueCount

        private final int valueCount
      • coordinates

        private final long[] coordinates
      • currentPos

        private int currentPos
    • Constructor Detail

      • NonZeroIterator

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

      • hasNext

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

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

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