getFormatted method

String getFormatted()

Runs formatter class

Implementation

String getFormatted()
{
  StringJoiner sj = new StringJoiner( getInterpolatorChar() );

  int lastPrecision = 0;
  for (int precision in precisions)
  {
    if ( precision >= _highestPrecisionShown ) {
      if ( formatCurrentPrecision(sj, lastPrecision, precision, _durationMs) ) {
        break; // Exit loop as instructed by virtual function.
      }
      lastPrecision = precision;
    }
    else {
      break; // Because set is ordered from largest to smallest, there won't be others we haven't already rendered.
    }
  }

  return sj.toString();
}