public class XYCurve.Itr
extends java.lang.Object
#getX()
and #getY()
operations, which does not work consistently with Java's
next()
style of iterations.
Instead, use this style of iteration: for (XYCurve.Itr it = curve.iterator(); it.valid(); it.advance()) { doSomethingWith(it.getX(), it.getY()); }
Modifier and Type | Field and Description |
---|---|
protected int |
pos
Iterator position
|
Constructor and Description |
---|
Itr() |
Modifier and Type | Method and Description |
---|---|
void |
advance()
Advance the iterator to the next position.
|
double |
getX()
Get x value of current element.
|
double |
getY()
Get y value of current element.
|
boolean |
valid()
Test if the iterator can advance.
|
public double getX()
public double getY()
public void advance()
public boolean valid()
Copyright © 2019 ELKI Development Team. License information.