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 Pressure extends Quantity { 23 24 27 private final static Unit<Pressure> UNIT = SI.PASCAL; 28 29 32 private final static Factory<Pressure> FACTORY = new Factory<Pressure>(UNIT) { 33 protected Pressure create() { 34 return new Pressure(); 35 } 36 }.useFor(UNIT.getBaseUnits()); 37 38 41 public final static Pressure ZERO = Quantity.valueOf(0, UNIT); 42 43 46 protected Pressure() { 47 } 48 49 54 public static void showAs(Unit unit) { 55 QuantityFormat.show(Pressure.class, unit); 56 } 57 58 private static final long serialVersionUID = 1L; 59 60 } 61 | Popular Tags |