/** * Factory method for constructing a UnitName from a name, a plural form of * the name, and a symbol. * * @param name * The name of the unit. Shall not be <code> * null</code>. * @param plural * The plural form of the name. May be <code> * null</code>, in which * case regular plural- forming rules are used to construct the * plural form from the name. * @param symbol * The symbol for the unit. May be <code>null * </code>. * @throws NameException * <code>name == null</code>. */ public static UnitName newUnitName(final String name, final String plural, final String symbol) throws NameException { return new UnitName(name, plural, symbol); }
/** * Factory method for constructing a UnitName from a name, a plural form of * the name, and a symbol. * * @param name * The name of the unit. Shall not be <code> * null</code>. * @param plural * The plural form of the name. May be <code> * null</code>, in which * case regular plural- forming rules are used to construct the * plural form from the name. * @param symbol * The symbol for the unit. May be <code>null * </code>. * @throws NameException * <code>name == null</code>. */ public static UnitName newUnitName(final String name, final String plural, final String symbol) throws NameException { return new UnitName(name, plural, symbol); }