private static PeriodFormatterAndValue selectFormatter(Period daysPeriod){
  int days=daysPeriod.getDays();
  if (days > 0) {
    return pav(DAY_FORMATTER,days);
  }
  int hours=daysPeriod.getHours();
  if (hours > 0) {
    return pav(HOUR_FORMATTER,hours);
  }
  int minutes=daysPeriod.getMinutes();
  if (minutes > 0) {
    return pav(MINUTE_FORMATTER,minutes);
  }
  int seconds=daysPeriod.getSeconds();
  if (seconds > 0) {
    return pav(SECOND_FORMATTER,seconds);
  }
  return null;
}

private static PeriodFormatterAndValue selectFormatter ( Period daysPeriod ) { int days = daysPeriod . getDays ( ) ; if ( days > 0 ) { return pav ( DAY_FORMATTER , days ) ; } int hours = daysPeriod . getHours ( ) ; if ( hours > 0 ) { return pav ( HOUR_FORMATTER , hours ) ; } int minutes = daysPeriod . getMinutes ( ) ; if ( minutes > 0 ) { return pav ( MINUTE_FORMATTER , minutes ) ; } int seconds = daysPeriod . getSeconds ( ) ; if ( seconds > 0 ) { return pav ( SECOND_FORMATTER , seconds ) ; } return null ; }
best matching formatter of null if auction ended .
