Class RangeUtils

java.lang.Object
org.luwrain.util.RangeUtils

public final class RangeUtils extends Object
  • 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)