@@ -0,0 +1,231 @@
+package org.psjava.math;%0A%0Aimport java.util.Comparator;%0A%0Apublic class InRange %7B%0A%09%0A%09public static %3CT%3E boolean is(T v, T lower, T upper, Comparator%3CT%3E comp) %7B%0A%09%09return comp.compare(lower, v) %3C= 0 && comp.compare(v, upper) %3C= 0;%0A%09%7D%0A%0A%7D%0A

add util class