1 9 package org.jscience.physics.quantities; 10 11 import org.jscience.physics.units.SI; 12 import org.jscience.physics.units.Unit; 13 14 22 public class VolumetricDensity extends Quantity { 23 24 27 private final static Unit<VolumetricDensity> UNIT = SI.KILOGRAM 28 .divide(SI.METER.pow(3)); 29 30 33 private final static Factory<VolumetricDensity> FACTORY = new Factory<VolumetricDensity>( 34 UNIT) { 35 protected VolumetricDensity create() { 36 return new VolumetricDensity(); 37 } 38 }; 39 40 43 public final static VolumetricDensity ZERO = Quantity.valueOf(0, UNIT); 44 45 48 protected VolumetricDensity() { 49 } 50 51 56 public static void showAs(Unit unit) { 57 QuantityFormat.show(VolumetricDensity.class, unit); 58 } 59 60 private static final long serialVersionUID = 1L; 61 } 62 | Popular Tags |