public static UnitID newUnitID ( final String name , final String plural , final String symbol ) { UnitID id ; try { id = name == null ? new UnitSymbol ( symbol ) : UnitName . newUnitName ( name , plural , symbol ) ; } catch ( final NameException e ) { id = null ; // can't happen } return id ; }
Factory method for constructing an identifier from a name plural and symbol .