1 9 package org.jscience.physics.quantities; 10 import org.jscience.physics.units.SI; 11 import org.jscience.physics.units.Unit; 12 13 22 public class Mass extends Quantity { 23 24 27 private final static Unit<Mass> UNIT = SI.KILOGRAM; 28 29 32 private final static Factory<Mass> FACTORY = new Factory<Mass>( 33 UNIT) { 34 protected Mass create() { 35 return new Mass(); 36 } 37 }; 38 39 42 public final static Mass ZERO = Quantity.valueOf(0, UNIT); 43 44 47 public final static Mass ELECTRON 48 = Quantity.valueOf(9.10938188e-31, 0.00000072e-31, SI.KILOGRAM); 49 50 53 public final static Mass PROTON 54 = Quantity.valueOf(1.67262158e-27, 0.00000013e-27, SI.KILOGRAM); 55 56 59 public final static Mass NEUTRON 60 = Quantity.valueOf(1.67492716e-27, 0.00000013e-27, SI.KILOGRAM); 61 62 65 public final static Mass DEUTERON 66 = Quantity.valueOf(3.34358309e-27, 0.00000026e-27, SI.KILOGRAM); 67 68 71 public final static Mass MUON 72 = Quantity.valueOf(1.88353109e-28, 0.00000016e-28, SI.KILOGRAM); 73 74 77 protected Mass() { 78 } 79 80 85 public static void showAs(Unit unit) { 86 QuantityFormat.show(Mass.class, unit); 87 } 88 89 private static final long serialVersionUID = 1L; 90 91 } 92 | Popular Tags |