MAltitude extends Measurement { @NonNull @Override public String toString() { return String.format(Locale.US, "MAltitude(%d,%.1f)", millis, altitude); } MAltitude(long millis, double altitude, double climb); @NonNull @Override String toRow(); @NonNull @Override String toString(); final String sensor; final double altitude; final double climb; }
@Test public void stringify() { assertEquals("MAltitude(1541348400990,100.0)", alt.toString()); }