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 Temperature extends Quantity { 23 24 27 private final static Unit<Temperature> UNIT = SI.KELVIN; 28 29 32 private final static Factory<Temperature> FACTORY = new Factory<Temperature>( 33 UNIT) { 34 protected Temperature create() { 35 return new Temperature(); 36 } 37 }; 38 39 42 public final static Temperature ZERO = Quantity.valueOf(0, UNIT); 43 44 47 public final static Temperature STANDARD = Quantity.valueOf(273.15, 48 SI.KELVIN); 49 50 53 protected Temperature() { 54 } 55 56 61 public static void showAs(Unit unit) { 62 QuantityFormat.show(Temperature.class, unit); 63 } 64 65 private static final long serialVersionUID = 1L; 66 67 } 68 | Popular Tags |