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