Class OpenMapRealVector.OpenMapSparseIterator

  • All Implemented Interfaces:
    java.util.Iterator<RealVector.Entry>
    Enclosing class:
    OpenMapRealVector

    protected class OpenMapRealVector.OpenMapSparseIterator
    extends java.lang.Object
    implements java.util.Iterator<RealVector.Entry>
    Iterator class to do iteration over just the non-zero elements.

    This implementation is fail-fast, so cannot be used to modify any zero element.

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected OpenMapSparseIterator()
      Simple constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()
      RealVector.Entry 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
    • Constructor Detail

      • OpenMapSparseIterator

        protected OpenMapSparseIterator()
        Simple constructor.