MeasureUnitUtil { @Pure @Inline(value = "($1) / 1e-3") public static double unit2milli(double unit) { return unit / 1e-3; } private  MeasureUnitUtil(); @Pure @Inline(value = "($1) * 3.6") static double ms2kmh(double ms); @Pure @Inline(value = "($1) / 3.6") static double kmh2ms(double kmh); @Pure @Inline(value = "($1) / 1000.") static double m2km(double m); @Pure @Inline(value = "($1) * 1000.") static double km2m(double km); @Pure @Inline(value = "(int) $2.round($1)", imported = {Math.class}) static int pix2pix(double pixelCoord); @Pure @Inline(value = "(int) ($1)") static int pix2pix(long pixelCoord); @Pure @Inline(value = "$2.round($1)", imported = {Math.class}) static int pix2pix(float pixel_coord); @Pure @Inline(value = "($1) / 1e-9") static double unit2nano(double unit); @Pure @Inline(value = "($1) * 1e-9") static double nano2unit(double nano); @Pure @Inline(value = "($1) / 1e-6") static double unit2micro(double unit); @Pure @Inline(value = "($1) * 1e-6") static double micro2unit(double micro); @Pure @Inline(value = "($1) / 1e-3") static double unit2milli(double unit); @Pure @Inline(value = "($1) * 1e-3") static double milli2unit(double milli); @Pure @Inline(value = "($1) / 1e-3") static double milli2micro(double milli); @Pure @Inline(value = "($1) / 1e-6") static double milli2nano(double milli); @Pure @Inline(value = "($1) / 1e-3") static double micro2nano(double milli); @Pure @Inline(value = "($1) * 1e-3") static double micro2milli(double micro); @Pure @Inline(value = "($1) * 1e-3") static double nano2micro(double nano); @Pure @Inline(value = "($1) * 1e-6") static double nano2milli(double nano); @Pure @Inline(value = "($1) * 0.5468") static double m2fh(double m); @Pure @Inline(value = "($1) * 0.1667") static double ft2fh(double ft); @Pure @Inline(value = "($1) / 72.") static double in2fh(double in); @Pure @Inline(value = "($1) * 0.3048") static double m2ft(double m); @Pure @Inline(value = "($1 / 12)") static double in2ft(double in); @Pure @Inline(value = "($1) / 0.1667") static double fh2ft(double fh); @Pure @Inline(value = "($1) * 0.025") static double m2in(double m); @Pure @Inline(value = "($1) * 12.0") static double ft2in(double ft); @Pure @Inline(value = "($1) / 0.3937") static double inchToMetric(double i); @Pure @Inline(value = "($1) * 0.3937") static double metricToInch(double m); @Pure static double toSeconds(double value, TimeUnit inputUnit); @Pure @SuppressWarnings("checkstyle:returncount") static double toMeters(double value, SpaceUnit inputUnit); @Pure @SuppressWarnings("checkstyle:returncount") static double fromMeters(double value, SpaceUnit outputUnit); @Pure static double fromSeconds(double value, TimeUnit outputUnit); @Pure @Inline(value = "$4.fromSeconds(MeasureUnitUtil.toSeconds(($1), ($2)), ($3))", imported = {MeasureUnitUtil.class}) static double convert(long value, TimeUnit inputUnit, TimeUnit outputUnit); @Pure @Inline(value = "$4.fromSeconds(MeasureUnitUtil.toSeconds(($1), ($2)), ($3))", imported = {MeasureUnitUtil.class}) static double convert(double value, TimeUnit inputUnit, TimeUnit outputUnit); @Pure @Inline(value = "$4.fromMetersPerSecond(MeasureUnitUtil.toMetersPerSecond(($1), ($2)), ($3))", imported = {MeasureUnitUtil.class}) static double convert(double value, SpeedUnit inputUnit, SpeedUnit outputUnit); @Pure @Inline(value = "$4.fromRadiansPerSecond(MeasureUnitUtil.toRadiansPerSecond(($1), ($2)), ($3))", imported = {MeasureUnitUtil.class}) static double convert(double value, AngularUnit inputUnit, AngularUnit outputUnit); @Pure @Inline(value = "$4.fromMeters(MeasureUnitUtil.toMeters(($1), ($2)), ($3))", imported = {MeasureUnitUtil.class}) static double convert(double value, SpaceUnit inputUnit, SpaceUnit outputUnit); @Pure static double toMetersPerSecond(double value, SpeedUnit inputUnit); @Pure static double toRadiansPerSecond(double value, AngularUnit inputUnit); @Pure static double fromMetersPerSecond(double value, SpeedUnit outputUnit); @Pure static double fromRadiansPerSecond(double value, AngularUnit outputUnit); @Pure static SpaceUnit getSmallestUnit(double amount, SpaceUnit unit);  }
@Test public void unit2milli() { assertInlineParameterUsage(MeasureUnitUtil.class, "unit2milli", double.class); }