]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/IntegerRange.java
Version 7, February 2009
[GpsPrune.git] / tim / prune / data / IntegerRange.java
index 61ae34c4ad58f7e9d61a4f320bc76181f43da3e7..a16f44badb2aec77f10061970e8851de47509cba 100644 (file)
@@ -9,6 +9,16 @@ public class IntegerRange
        private int _min = -1, _max = -1;
 
 
+       /**
+        * Clear for a new range calculation
+        */
+       public void clear()
+       {
+               _min = -1;
+               _max = -1;
+       }
+
+
        /**
         * Add a value to the range
         * @param inValue value to add, only positive values considered
@@ -23,15 +33,6 @@ public class IntegerRange
        }
 
 
-       /**
-        * @return true if positive data values were found
-        */
-       public boolean hasData()
-       {
-               return (_max >= 0);
-       }
-
-
        /**
         * @return minimum value, or -1 if none found
         */