Package org.luwrain.util
Class RangeUtils
java.lang.Object
org.luwrain.util.RangeUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
between
(int pos, int from, int to) static int[]
commonRange
(int start1, int len1, int start2, int len2) static int[]
commonRangeByBounds
(int from1, int to1, int from2, int to2) static boolean
intersects
(int start1, int len1, int start2, int len2)
-
Constructor Details
-
RangeUtils
public RangeUtils()
-
-
Method Details
-
between
public static boolean between(int pos, int from, int to) -
intersects
public static boolean intersects(int start1, int len1, int start2, int len2) -
commonRange
public static int[] commonRange(int start1, int len1, int start2, int len2) -
commonRangeByBounds
public static int[] commonRangeByBounds(int from1, int to1, int from2, int to2)
-