com.rubecula.jquantity
Class UnitsImperial

java.lang.Object
  extended byjava.util.AbstractMap
      extended byjava.util.HashMap
          extended bycom.rubecula.jquantity.UnitsTable
              extended bycom.rubecula.jquantity.UnitsImperial
All Implemented Interfaces:
Cloneable, com.rubecula.util.Identifiable, Map, Serializable

public class UnitsImperial
extends UnitsTable

Class UnitsImperial models all of the Imperial ("English") units as a .

Since:
V_0_4
Version:
$Revision: 1.9 $
Author:
Robin Hillyard
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.HashMap
 
Nested classes inherited from class java.util.AbstractMap
 
Field Summary
private static String $_BTU_VAL
           
private static String $S_BTU
           
 
Fields inherited from class com.rubecula.jquantity.UnitsTable
 
Fields inherited from class java.util.HashMap
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
UnitsImperial()
          Construct a new table of CGS units.
 
Method Summary
(package private)  Measurable put(Measurable unit)
          Method to insert a unit in this table.
 
Methods inherited from class com.rubecula.jquantity.UnitsTable
audit, findParallel, findParallel, getIdentifier, getName, getSystem, lookup, lookup, match, toString
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

$_BTU_VAL

private static final String $_BTU_VAL
See Also:
Constant Field Values

$S_BTU

private static final String $S_BTU
See Also:
Constant Field Values
Constructor Detail

UnitsImperial

public UnitsImperial()
Construct a new table of CGS units.

Initially, the following units are defined:

New units may be added at any time.

Method Detail

put

Measurable put(Measurable unit)
Description copied from class: UnitsTable
Method to insert a unit in this table. Successful insertion depends on the value of the unit's identifier. If it's not null, then an insertion will be made provided that there is no existing entry of the same name (else an exception will be thrown). If it's null, then no insertion will be ever be made. However, if the unit itself matches an existing unit in the table, then that (matching unit) will be returned. Otherwise, the given unit will be returned.

Overrides:
put in class UnitsTable
Parameters:
unit - the Measurable instance to be inserted.