@Test public void testConvertToPresentationWithNull() { assertThat(converter.convertToPresentation(null, new ValueContext()), is("")); }
@Override public String convertToPresentation(@CheckForNull Decimal value, ValueContext context) { if (value == null || value.isNull()) { return ""; } else { return super.convertToPresentation(value, context); } }
FormattedDecimalFieldToStringConverter extends FormattedNumberToStringConverter<Decimal> { @Override public String convertToPresentation(@CheckForNull Decimal value, ValueContext context) { if (value == null || value.isNull()) { return ""; } else { return super.convertToPresentation(value, context); } } }
FormattedDecimalFieldToStringConverter extends FormattedNumberToStringConverter<Decimal> { @Override public String convertToPresentation(@CheckForNull Decimal value, ValueContext context) { if (value == null || value.isNull()) { return ""; } else { return super.convertToPresentation(value, context); } } FormattedDecimalFieldToStringConverter(String format); }
FormattedDecimalFieldToStringConverter extends FormattedNumberToStringConverter<Decimal> { @Override public String convertToPresentation(@CheckForNull Decimal value, ValueContext context) { if (value == null || value.isNull()) { return ""; } else { return super.convertToPresentation(value, context); } } FormattedDecimalFieldToStringConverter(String format); @Override Result<Decimal> convertToModel(@CheckForNull String value, ValueContext context); @Override String convertToPresentation(@CheckForNull Decimal value, ValueContext context); }
FormattedDecimalFieldToStringConverter extends FormattedNumberToStringConverter<Decimal> { @Override public String convertToPresentation(@CheckForNull Decimal value, ValueContext context) { if (value == null || value.isNull()) { return ""; } else { return super.convertToPresentation(value, context); } } FormattedDecimalFieldToStringConverter(String format); @Override Result<Decimal> convertToModel(@CheckForNull String value, ValueContext context); @Override String convertToPresentation(@CheckForNull Decimal value, ValueContext context);  }