code: public boolean containsInterval(Interval<T> i) {
  
          for (Interval<T> item : intervals) {
              if (item.contains(i)) {
                  return true;
              }
          }
  
          return false;
      }
docs: Return true if the argument interval is a subset of an interval of the partition
  
  @param i
  @return