comparison artifacts/src/main/java/org/dive4elements/river/utils/Formatter.java @ 6683:c6c3a2a26a33

Use full stop in doc. This fixes my syntax highlight :) .
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 29 Jul 2013 09:26:32 +0200
parents 8c976bb0362f
children 5eb8b9ae4484
comparison
equal deleted inserted replaced
6682:252806ee7dd1 6683:c6c3a2a26a33
133 Locale locale = Resources.getLocale(c.getMeta()); 133 Locale locale = Resources.getLocale(c.getMeta());
134 return NumberFormat.getInstance(locale); 134 return NumberFormat.getInstance(locale);
135 } 135 }
136 136
137 /** 137 /**
138 * Returns a formatter in engineering notation 138 * Returns a formatter in engineering notation.
139 */ 139 */
140 public static NumberFormat getEngFormatter(CallContext c) { 140 public static NumberFormat getEngFormatter(CallContext c) {
141 NumberFormat nf = getRawFormatter(c); 141 NumberFormat nf = getRawFormatter(c);
142 if (nf instanceof DecimalFormat) { 142 if (nf instanceof DecimalFormat) {
143 DecimalFormat df = (DecimalFormat)nf; 143 DecimalFormat df = (DecimalFormat)nf;
145 } 145 }
146 return nf; 146 return nf;
147 } 147 }
148 148
149 /** 149 /**
150 * Returns a number formatter that uses an exponent after max digits 150 * Returns a number formatter that uses an exponent after max digits.
151 */ 151 */
152 public static NumberFormat getScientificFormater(CallContext c, int min, int max) { 152 public static NumberFormat getScientificFormater(CallContext c, int min, int max) {
153 NumberFormat nf = getRawFormatter(c); 153 NumberFormat nf = getRawFormatter(c);
154 if (nf instanceof DecimalFormat) { 154 if (nf instanceof DecimalFormat) {
155 DecimalFormat df = (DecimalFormat)nf; 155 DecimalFormat df = (DecimalFormat)nf;

http://dive4elements.wald.intevation.org