/** * Returns a string representation of this unit. If the symbol or name is * available, then that is returned; otherwise, the corresponding expression * in base units is returned. * * @return The string expression for this derived unit. */ @Override public String toString() { final String string = super.toString(); // get symbol or name return string != null ? string : getCanonicalString(); }
/** * Returns a string representation of this unit. If the symbol or name is * available, then that is returned; otherwise, the corresponding expression * in base units is returned. * * @return The string expression for this derived unit. */ @Override public String toString() { final String string = super.toString(); // get symbol or name return string != null ? string : getCanonicalString(); }