Package io.github.jbellis.jvector.graph
Class NodesIterator.ArrayNodesIterator
java.lang.Object
io.github.jbellis.jvector.graph.NodesIterator
io.github.jbellis.jvector.graph.NodesIterator.ArrayNodesIterator
- All Implemented Interfaces:
Iterator<Integer>,PrimitiveIterator<Integer,,IntConsumer> PrimitiveIterator.OfInt
- Enclosing class:
NodesIterator
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.jbellis.jvector.graph.NodesIterator
NodesIterator.ArrayNodesIteratorNested classes/interfaces inherited from interface java.util.PrimitiveIterator
PrimitiveIterator.OfDouble, PrimitiveIterator.OfInt, PrimitiveIterator.OfLong -
Field Summary
Fields inherited from class io.github.jbellis.jvector.graph.NodesIterator
size -
Constructor Summary
ConstructorsConstructorDescriptionArrayNodesIterator(int[] nodes) ArrayNodesIterator(int[] nodes, int size) Constructor for iterator based on integer array representing nodes -
Method Summary
Methods inherited from class io.github.jbellis.jvector.graph.NodesIterator
fromPrimitiveIterator, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.PrimitiveIterator.OfInt
forEachRemaining, forEachRemaining, next
-
Constructor Details
-
ArrayNodesIterator
public ArrayNodesIterator(int[] nodes, int size) Constructor for iterator based on integer array representing nodes -
ArrayNodesIterator
public ArrayNodesIterator(int[] nodes)
-
-
Method Details
-
nextInt
public int nextInt() -
hasNext
public boolean hasNext()
-