List of utility methods to do Cadence Format
CharSequence | formatCadence(Float cadence) format Cadence if (cadence == null) return "?"; return FORMAT_CADENCE.format(cadence); |
CharSequence | formatCadence(Float cadence, boolean withUnit) format Cadence String unit = ""; if (withUnit) unit = " rpm"; if (cadence == null) return "?" + unit; return FORMAT_CADENCE.format(cadence) + unit; |