comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/SInfoResultType.java @ 9491:d7d22ea8573d

Temporarily: log sinfo meanbedheight formatting
author mschaefer
date Wed, 19 Sep 2018 17:53:53 +0200
parents e44c1a8b0c54
children 83e6acdf8fc6
comparison
equal deleted inserted replaced
9490:e44c1a8b0c54 9491:d7d22ea8573d
210 private static final long serialVersionUID = 1L; 210 private static final long serialVersionUID = 1L;
211 211
212 @Override 212 @Override
213 public String exportValue(final CallContext context, final Object value) { 213 public String exportValue(final CallContext context, final Object value) {
214 final double doubleValue = asDouble(value); 214 final double doubleValue = asDouble(value);
215 log.trace(String.format("meanBedHeight.exportValue value: %f doubleValue: %f formatted to: %s", value, doubleValue, 215 String rm;
216 exportDoubleValue(context, doubleValue))); 216 try {
217 rm = getFormatter(context).getRoundingMode().toString();
218 }
219 catch (final Exception e) {
220 rm = "?";
221 }
222 log.trace(String.format("meanBedHeight.exportValue roundingmode: %s value: %f doubleValue: %f formatted to: %s",
223 rm, value, doubleValue, exportDoubleValue(context, doubleValue)));
217 return exportDoubleValue(context, doubleValue); 224 return exportDoubleValue(context, doubleValue);
218 } 225 }
219 226
220 @Override 227 @Override
221 protected NumberFormat createFormatter(final CallContext context) { 228 protected NumberFormat createFormatter(final CallContext context) {

http://dive4elements.wald.intevation.org