@Test public void testCreate() { Alarm alarm = Alarm.create(AlarmSeverity.MINOR, "LOW"); Time time = Time.create(Instant.ofEpochSecond(1354719441, 521786982)); VDouble value = VDouble.create(1.0, alarm, time, Display.none()); assertThat(value.getValue(), equalTo(1.0)); assertThat(value.getAlarm(), equalTo(alarm)); assertThat(value.getTime(), equalTo(time)); assertThat(value.toString(), equalTo("VDouble[1.0 ,MINOR(LOW), 2012-12-05T14:57:21.521786982Z]")); }
public static VDouble create(final Double value, final Alarm alarm, final Time time, final Display display) { return new IVDouble(value, alarm, time, display); }
VDouble extends VNumber { public static VDouble create(final Double value, final Alarm alarm, final Time time, final Display display) { return new IVDouble(value, alarm, time, display); } }
VDouble extends VNumber { public static VDouble create(final Double value, final Alarm alarm, final Time time, final Display display) { return new IVDouble(value, alarm, time, display); }  }
VDouble extends VNumber { public static VDouble create(final Double value, final Alarm alarm, final Time time, final Display display) { return new IVDouble(value, alarm, time, display); }  @Override abstract Double getValue(); static VDouble create(final Double value, final Alarm alarm, final Time time, final Display display); }
VDouble extends VNumber { public static VDouble create(final Double value, final Alarm alarm, final Time time, final Display display) { return new IVDouble(value, alarm, time, display); }  @Override abstract Double getValue(); static VDouble create(final Double value, final Alarm alarm, final Time time, final Display display);  }