Exemple #1
0
 /**
  * Returns the given double value as frequency string.
  *
  * @return a frequency representation.
  */
 public static String formatPeriodAsFrequency(final Double aPeriod) {
   if (aPeriod != null) {
     return Unit.Frequency.format(1.0 / aPeriod.doubleValue());
   }
   return "-";
 }
Exemple #2
0
 /**
  * Returns the given double value as frequency string.
  *
  * @return a frequency representation.
  */
 public static String formatFrequency(final Double aFrequency) {
   if (aFrequency != null) {
     return Unit.Frequency.format(aFrequency.doubleValue());
   }
   return "-";
 }