@@ -0,0 +1,705 @@
+package net.sf.jranges.range;%0A%0Aimport net.sf.jranges.range.doublerange.DoubleRange;%0Aimport net.sf.jranges.range.integer.IntegerRange;%0A%0Apublic class RangeUtils %7B%0A%09%0A%09public interface IntegerRangeCallback %7B%0A%09%09void call(int i);%0A%09%7D%0A%09%0A%09public interface DoubleRangeCallback %7B%0A%09%09void call(double d);%0A%09%7D%0A%09%0A%09private RangeUtils()%7B%7D%0A%09%0A%09public static void doForAllInRange(IntegerRange range, IntegerRangeCallback task)%7B%0A%09%09for(int i = range.getStart(); i %3C= range.getStop(); i+= range.getInterval())%7B%0A%09%09%09task.call(i);%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static void doForAllInRange(DoubleRange range, DoubleRangeCallback task)%7B%0A%09%09for(double i = range.getStart(); i %3C= range.getStop(); i+= range.getInterval())%7B%0A%09%09%09task.call(i);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Introduce RangeUtils.