code: public void addTimeInterval(T interval){
  		timeIntervals.add(interval);
  		minBorders.setStart(Math.max(minBorders.getStart(), interval.getStart()));
  		minBorders.setEnd(Math.min(minBorders.getEnd(), interval.getEnd()));
  		if(maxBorders == null){
  			maxBorders = interval.clone();
  		} else {
  			maxBorders.setStart(Math.min(maxBorders.getStart(), interval.getStart()));
  			maxBorders.setEnd(Math.max(maxBorders.getEnd(), interval.getEnd()));
  		}
  	}
docs: Adds a new time interval to the list of time intervals
  and adjusts the minimum and maximum borders.
  @param interval The interval to add.