/** * Gets the name of the unit. * * @return The name of the unit. May be <code>null</code>. */ public final String getName() { return id == null ? null : id.getName(); }
/** * Gets the name of the unit. * * @return The name of the unit. May be <code>null</code>. */ public final String getName() { return id == null ? null : id.getName(); }
/** * Returns the hash code of this instance. * * @return The hash code of this instance. */ @Override public int hashCode() { return getName().toLowerCase().hashCode(); }
/** * Returns the hash code of this instance. * * @return The hash code of this instance. */ @Override public int hashCode() { return getName().toLowerCase().hashCode(); }
/** * Returns the string representation of this identifier. * * @return The string representation of this identifier. */ @Override public final String toString() { final String string = getSymbol(); return string == null ? getName() : string; }
/** * Returns the string representation of this identifier. * * @return The string representation of this identifier. */ @Override public final String toString() { final String string = getSymbol(); return string == null ? getName() : string; }
Assert.assertEquals("second", bu.getUnitName().getName()); Assert.assertEquals(86400.0, su.getScale(), 0); Assert.assertEquals("second", bu.getUnitName().getName()); Assert.assertEquals(86400.0, su.getScale(), 0); Assert.assertEquals("second", bu.getUnitName().getName()); Assert.assertEquals(259200.0, su.getScale(), 0);