public class PredicateCursor<T extends Type<T>> extends Object implements Cursor<T>
Modifier and Type | Field and Description |
---|---|
protected Cursor<T> |
cursor |
protected boolean |
hasNext |
protected boolean |
lookedForNext |
protected Predicate<T> |
predicate |
Constructor and Description |
---|
PredicateCursor(Cursor<T> cursor,
Predicate<T> predicate) |
Modifier and Type | Method and Description |
---|---|
Sampler<T> |
copy() |
Cursor<T> |
copyCursor() |
protected boolean |
findNext()
Walks to the next valid elements and stores them in member
variables cachedType1 and cachedType2.
|
void |
fwd() |
T |
get() |
double |
getDoublePosition(int arg0) |
float |
getFloatPosition(int arg0) |
int |
getIntPosition(int arg0) |
long |
getLongPosition(int arg0) |
boolean |
hasNext() |
void |
jumpFwd(long num) |
void |
localize(double[] arg0) |
void |
localize(float[] arg0) |
void |
localize(int[] arg0) |
void |
localize(long[] arg0) |
T |
next() |
int |
numDimensions() |
void |
remove() |
void |
reset() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
protected boolean findNext()
public void fwd()
public void jumpFwd(long num)
public void reset()
public double getDoublePosition(int arg0)
getDoublePosition
in interface Localizable
getDoublePosition
in interface RealLocalizable
public float getFloatPosition(int arg0)
getFloatPosition
in interface Localizable
getFloatPosition
in interface RealLocalizable
public void localize(float[] arg0)
localize
in interface RealLocalizable
public void localize(double[] arg0)
localize
in interface RealLocalizable
public int numDimensions()
numDimensions
in interface EuclideanSpace
public int getIntPosition(int arg0)
getIntPosition
in interface Localizable
public long getLongPosition(int arg0)
getLongPosition
in interface Localizable
public void localize(int[] arg0)
localize
in interface Localizable
public void localize(long[] arg0)
localize
in interface Localizable
public Cursor<T> copyCursor()
copyCursor
in interface Cursor<T extends Type<T>>
copyCursor
in interface RealCursor<T extends Type<T>>
Copyright © 2015–2021 Fiji. All rights reserved.