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 Frequency extends Quantity { 24 25 28 private final static Unit<Frequency> UNIT = SI.HERTZ; 29 30 33 private final static Factory<Frequency> FACTORY = new Factory<Frequency>( 34 UNIT) { 35 protected Frequency create() { 36 return new Frequency(); 37 } 38 }.useFor(UNIT.getBaseUnits()); 39 40 43 public final static Frequency ZERO = Quantity.valueOf(0, UNIT); 44 45 48 protected Frequency() { 49 } 50 51 56 public static void showAs(Unit unit) { 57 QuantityFormat.show(Frequency.class, unit); 58 } 59 60 private static final long serialVersionUID = 1L; 61 62 } 63 | Popular Tags |