1 9 package org.jscience.physics.quantities; 10 11 import org.jscience.physics.units.SI; 12 import org.jscience.physics.units.Unit; 13 14 25 public class Torque extends Quantity { 26 27 30 private final static Unit<Torque> UNIT = SI.NEWTON.times(SI.METER); 31 32 35 private final static Factory<Torque> FACTORY = new Factory<Torque>(UNIT) { 36 protected Torque create() { 37 return new Torque(); 38 } 39 }; 40 41 44 public final static Torque ZERO = Quantity.valueOf(0, UNIT); 45 46 49 protected Torque() { 50 } 51 52 57 public static void showAs(Unit unit) { 58 QuantityFormat.show(Torque.class, unit); 59 } 60 61 private static final long serialVersionUID = 1L; 62 63 } 64 | Popular Tags |