Example #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 FrequencyUnit.format(1.0 / aPeriod.doubleValue());
   }
   return "-";
 }
Example #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 FrequencyUnit.format(aFrequency.doubleValue());
   }
   return "-";
 }