/** * 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 "-"; }
/** * 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 "-"; }