code: public static boolean contains(Range range, Range subrange) {
          return range.getMinimum().doubleValue() <= subrange.getMinimum().doubleValue()
                  && range.getMaximum().doubleValue() >= subrange.getMaximum().doubleValue();
          
      }
docs: Determines whether the subrange is contained in the range or not.
  
  @param range a range
  @param subrange a possible subrange
  @return true if subrange is contained in range