/** * Check if amount of the specified unit can be converted into amount of this unit. * * @param other * @return true if this unit can be converted into the other unit */ public boolean canConvert( final IUnit other ) { return ( baseType == other.getBaseType() ) || ( baseType != null && baseType.equals( other.getBaseType() ) ); }
@Override public IUnit getBaseType() { return getReferencedObject().getBaseType(); }