Class CartesianIndexSpliterator
- java.lang.Object
-
- io.github.hakkelt.ndarrays.internal.CartesianIndexSpliterator
-
- All Implemented Interfaces:
Spliterator<int[]>
public class CartesianIndexSpliterator extends Object implements Spliterator<int[]>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T extends Object,T_CONS extends Object,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
-
-
Field Summary
-
Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
-
Constructor Summary
Constructors Constructor Description CartesianIndexSpliterator(int[] shape)
CartesianIndexSpliterator(int[] shape, int[] multipliers)
CartesianIndexSpliterator(int[] shape, int[] multipliers, int[] origin, int[] fence, int splitDimension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
characteristics()
long
estimateSize()
void
forEachRemaining(Consumer<? super int[]> action)
int[]
getMultipliers()
boolean
tryAdvance(Consumer<? super int[]> action)
Spliterator<int[]>
trySplit()
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Spliterator
getComparator, getExactSizeIfKnown, hasCharacteristics
-
-
-
-
Constructor Detail
-
CartesianIndexSpliterator
public CartesianIndexSpliterator(int[] shape)
-
CartesianIndexSpliterator
public CartesianIndexSpliterator(int[] shape, int[] multipliers)
-
CartesianIndexSpliterator
public CartesianIndexSpliterator(int[] shape, int[] multipliers, int[] origin, int[] fence, int splitDimension)
-
-
Method Detail
-
forEachRemaining
public void forEachRemaining(Consumer<? super int[]> action)
- Specified by:
forEachRemaining
in interfaceSpliterator<int[]>
-
tryAdvance
public boolean tryAdvance(Consumer<? super int[]> action)
- Specified by:
tryAdvance
in interfaceSpliterator<int[]>
-
trySplit
public Spliterator<int[]> trySplit()
- Specified by:
trySplit
in interfaceSpliterator<int[]>
-
estimateSize
public long estimateSize()
- Specified by:
estimateSize
in interfaceSpliterator<int[]>
-
characteristics
public int characteristics()
- Specified by:
characteristics
in interfaceSpliterator<int[]>
-
getMultipliers
public int[] getMultipliers()
-
-