private StringBuffer format(OffsetUnit unit, StringBuffer buf, boolean normalize) throws UnitClassException { double offset = unit.getOffset(); if (offset == 0.0) { format(unit.getUnit(), buf, normalize); } else { int start = buf.length(); format(unit.getUnit(), buf, normalize); return (isBlackSpace(buf, start) ? buf : buf.insert(start, '(').append(')')). append(" @ ").append(offset); } return buf; }
private StringBuffer format(OffsetUnit unit, StringBuffer buf, boolean normalize) throws UnitClassException { double offset = unit.getOffset(); if (offset == 0.0) { format(unit.getUnit(), buf, normalize); } else { int start = buf.length(); format(unit.getUnit(), buf, normalize); return (isBlackSpace(buf, start) ? buf : buf.insert(start, '(').append(')')). append(" @ ").append(offset); } return buf; }