static Unit getInstance(final Unit unit, final double origin) { return (origin == 0) ? unit : new OffsetUnit(unit, origin); }
static Unit getInstance(final Unit unit, final double origin) { return (origin == 0) ? unit : new OffsetUnit(unit, origin); }
/** * Clones this unit, changing the identifier. * * @param id * The identifier for the new unit. * @return This unit with its identifier changed. */ public Unit clone(final UnitName id) { return new OffsetUnit(getUnit(), getOffset(), id); }
/** * Clones this unit, changing the identifier. * * @param id * The identifier for the new unit. * @return This unit with its identifier changed. */ public Unit clone(final UnitName id) { return new OffsetUnit(getUnit(), getOffset(), id); }