1 9 package org.jscience.physics.quantities; 10 import org.jscience.physics.units.SI; 11 import org.jscience.physics.units.Unit; 12 13 20 public class DataRate extends Quantity { 21 22 25 private final static Unit<DataRate> UNIT = SI.BIT.divide(SI.SECOND); 26 27 30 private final static Factory<DataRate> FACTORY = new Factory<DataRate>( 31 UNIT) { 32 protected DataRate create() { 33 return new DataRate(); 34 } 35 }; 36 37 40 public final static DataRate ZERO = Quantity.valueOf(0, UNIT); 41 42 45 protected DataRate() { 46 } 47 48 53 public static void showAs(Unit unit) { 54 QuantityFormat.show(DataRate.class, unit); 55 } 56 57 private static final long serialVersionUID = 1L; 58 59 } | Popular Tags |