DoubleDataPoint -> kt
This commit is contained in:
parent
6e7b5ab7db
commit
0eb34c5abc
2 changed files with 9 additions and 40 deletions
|
@ -1,40 +0,0 @@
|
|||
package info.nightscout.androidaps.plugins.general.overview.graphExtensions;
|
||||
|
||||
import com.jjoe64.graphview.series.DataPointInterface;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* Created by mike on 21.04.2017.
|
||||
*/
|
||||
|
||||
public class DoubleDataPoint implements DataPointInterface, Serializable {
|
||||
private static final long serialVersionUID=1428267322645L;
|
||||
|
||||
private final double x;
|
||||
private final double y1;
|
||||
private final double y2;
|
||||
|
||||
public DoubleDataPoint(double x, double y1, double y2) {
|
||||
this.x=x;
|
||||
this.y1=y1;
|
||||
this.y2=y2;
|
||||
}
|
||||
|
||||
public double getX() {
|
||||
return x;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getY() {
|
||||
return y1;
|
||||
}
|
||||
|
||||
public double getY1() {
|
||||
return y1;
|
||||
}
|
||||
|
||||
public double getY2() {
|
||||
return y2;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
package info.nightscout.androidaps.plugins.general.overview.graphExtensions
|
||||
|
||||
import com.jjoe64.graphview.series.DataPointInterface
|
||||
|
||||
class DoubleDataPoint(private val x: Double, val y1: Double, val y2: Double) : DataPointInterface {
|
||||
|
||||
override fun getX(): Double = x
|
||||
override fun getY(): Double = y1
|
||||
}
|
Loading…
Reference in a new issue