@Test public void copyFromTest() { bgReading = new BgReading(); BgReading copy = new BgReading(); bgReading.value = 81; long now = System.currentTimeMillis(); bgReading.date = now; copy.date = now; copy.copyFrom(bgReading); assertEquals(81, copy.value, 0.1d); assertEquals(now, copy.date); assertEquals(bgReading.directionToSymbol(), copy.directionToSymbol()); }
public void copyFrom(BgReading other) { if (date != other.date) { if (L.isEnabled(L.GLUCOSE)) log.error("Copying different"); return; } value = other.value; raw = other.raw; direction = other.direction; _id = other._id; }
BgReading implements DataPointWithLabelInterface { public void copyFrom(BgReading other) { if (date != other.date) { if (L.isEnabled(L.GLUCOSE)) log.error("Copying different"); return; } value = other.value; raw = other.raw; direction = other.direction; _id = other._id; } }
BgReading implements DataPointWithLabelInterface { public void copyFrom(BgReading other) { if (date != other.date) { if (L.isEnabled(L.GLUCOSE)) log.error("Copying different"); return; } value = other.value; raw = other.raw; direction = other.direction; _id = other._id; } BgReading();  BgReading(NSSgv sgv); }
BgReading implements DataPointWithLabelInterface { public void copyFrom(BgReading other) { if (date != other.date) { if (L.isEnabled(L.GLUCOSE)) log.error("Copying different"); return; } value = other.value; raw = other.raw; direction = other.direction; _id = other._id; } BgReading();  BgReading(NSSgv sgv); Double valueToUnits(String units); String valueToUnitsToString(String units); String directionToSymbol(); @Override String toString(); boolean isDataChanging(BgReading other); boolean isEqual(BgReading other); void copyFrom(BgReading other); BgReading date(long date); BgReading date(Date date); BgReading value(double value); @Override double getX(); @Override double getY(); @Override void setY(double y); @Override String getLabel(); @Override long getDuration(); @Override PointsWithLabelGraphSeries.Shape getShape(); @Override float getSize(); @Override int getColor(); int getPredectionColor(); }
BgReading implements DataPointWithLabelInterface { public void copyFrom(BgReading other) { if (date != other.date) { if (L.isEnabled(L.GLUCOSE)) log.error("Copying different"); return; } value = other.value; raw = other.raw; direction = other.direction; _id = other._id; } BgReading();  BgReading(NSSgv sgv); Double valueToUnits(String units); String valueToUnitsToString(String units); String directionToSymbol(); @Override String toString(); boolean isDataChanging(BgReading other); boolean isEqual(BgReading other); void copyFrom(BgReading other); BgReading date(long date); BgReading date(Date date); BgReading value(double value); @Override double getX(); @Override double getY(); @Override void setY(double y); @Override String getLabel(); @Override long getDuration(); @Override PointsWithLabelGraphSeries.Shape getShape(); @Override float getSize(); @Override int getColor(); int getPredectionColor(); @DatabaseField(id = true)
    public long date; @DatabaseField
    public boolean isValid; @DatabaseField
    public double value; @DatabaseField
    public String direction; @DatabaseField
    public double raw; @DatabaseField
    public int source; @DatabaseField
    public String _id; public boolean isCOBPrediction; public boolean isaCOBPrediction; public boolean isIOBPrediction; public boolean isUAMPrediction; public boolean isZTPrediction; }