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