Class Ranges


  • public final class Ranges
    extends java.lang.Object
    Utility class for Range.
    • Method Detail

      • containsRange

        public static boolean containsRange​(Range bigger,
                                            Range smaller)
        true if the smaller range is inside or equal to the bigger range. Otherwise, false.
      • containsPosition

        public static boolean containsPosition​(Range range,
                                               Position position)
        true if the position is either inside or on the border of the range. Otherwise, false.