1 9 package org.jscience.physics.quantities; 10 import org.jscience.physics.units.SI; 11 import org.jscience.physics.units.Unit; 12 13 20 public class Velocity extends Quantity { 21 22 25 private final static Unit<Velocity> UNIT = SI.METER_PER_SECOND; 26 27 30 private final static Factory<Velocity> FACTORY = new Factory<Velocity>( 31 UNIT) { 32 protected Velocity create() { 33 return new Velocity(); 34 } 35 }; 36 37 40 public final static Velocity ZERO = Quantity.valueOf(0, UNIT); 41 42 45 public final static Velocity SPEED_OF_LIGHT = Quantity.valueOf(299792458, UNIT); 46 47 50 protected Velocity() { 51 } 52 53 58 public static void showAs(Unit unit) { 59 QuantityFormat.show(Velocity.class, unit); 60 } 61 62 private static final long serialVersionUID = 1L; 63 64 } 65 | Popular Tags |