diff flys-artifacts/src/main/java/de/intevation/flys/utils/DoubleUtil.java @ 4052:6d8c7a00e74e

Do cumentation.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 08 Oct 2012 09:51:03 +0200
parents a5f65e8983be
children 2b4f78ccfbaa
line wrap: on
line diff
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/DoubleUtil.java	Sat Oct 06 13:19:44 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/DoubleUtil.java	Mon Oct 08 09:51:03 2012 +0200
@@ -8,8 +8,10 @@
 
 import org.apache.log4j.Logger;
 
+/** Utils to deal with Double precision values. */
 public class DoubleUtil
 {
+    /** Private logger. */
     private static Logger log = Logger.getLogger(DoubleUtil.class);
 
     public static final double DEFAULT_STEP_PRECISION = 1e6;
@@ -144,10 +146,15 @@
         return result;
     }
 
+
+    /** Use with parseSegments. */
     public interface SegmentCallback {
         void newSegment(double from, double to, double [] values);
     }
 
+
+    /** Call callback for every string split by colon.
+     * Expected format FROM:TO:VALUE1,VALUE2,VALUE3*/
     public static final void parseSegments(
         String          input,
         SegmentCallback callback

http://dive4elements.wald.intevation.org