Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractExportContext.java @ 9503:83e6acdf8fc6
Fixed: no rounding during calculations (Meilenstein-2 2.9)
author | mschaefer |
---|---|
date | Fri, 28 Sep 2018 10:11:06 +0200 |
parents | e60584f2a531 |
children |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractExportContext.java Fri Sep 28 10:02:28 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractExportContext.java Fri Sep 28 10:11:06 2018 +0200 @@ -26,6 +26,7 @@ private NumberFormat floodDurationFormat = null; private NumberFormat salixScenFormat = null; private NumberFormat kmFormat = null; + private NumberFormat intFormat = null; /** The CallContext object. */ private final CallContext context; @@ -85,6 +86,13 @@ return this.salixScenFormat; } + public final NumberFormat getIntegerFormatter() { + if (this.intFormat == null) + this.intFormat = Formatter.getIntegerFormatter(this.context); + + return this.intFormat; + } + protected String msg(final String key) { return Resources.getMsg(this.context.getMeta(), key, key); }