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