MPressure extends Measurement { @NonNull @Override public String toString() { return String.format(Locale.US, "MPressure(%d,%.2f)", millis, pressure); } MPressure(long millis, long nano, double altitude, double climb, float pressure); @NonNull @Override String toRow(); @NonNull @Override String toString(); final String sensor; final double altitude; final double climb; final double pressure; }
@Test public void stringify() { assertEquals("MPressure(1541348400990,1014.30)", pres.toString()); }