@Test public void testConvertToModelWithNull() { assertThat(converter.convertToModel(null, new ValueContext()) .getOrThrow(s -> new AssertionError(s)), is(Decimal.NULL)); }
@Override protected Decimal convertToModel(Number value) { return Decimal.valueOf(value.doubleValue()); }
FormattedDecimalFieldToStringConverter extends FormattedNumberToStringConverter<Decimal> { @Override protected Decimal convertToModel(Number value) { return Decimal.valueOf(value.doubleValue()); } }
FormattedDecimalFieldToStringConverter extends FormattedNumberToStringConverter<Decimal> { @Override protected Decimal convertToModel(Number value) { return Decimal.valueOf(value.doubleValue()); } FormattedDecimalFieldToStringConverter(String format); }
FormattedDecimalFieldToStringConverter extends FormattedNumberToStringConverter<Decimal> { @Override protected Decimal convertToModel(Number value) { return Decimal.valueOf(value.doubleValue()); } 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 protected Decimal convertToModel(Number value) { return Decimal.valueOf(value.doubleValue()); } FormattedDecimalFieldToStringConverter(String format); @Override Result<Decimal> convertToModel(@CheckForNull String value, ValueContext context); @Override String convertToPresentation(@CheckForNull Decimal value, ValueContext context);  }