code: public static boolean isTimeConflict(Time timeFrom, Time timeTo, Time otherTimeFrom, Time otherTimeTo) {
  		if (JKDateTimeUtil.isTimesEqaualed(timeFrom, otherTimeFrom) || JKDateTimeUtil.isTimesEqaualed(timeTo, otherTimeTo)) {
  			return true;
  		}
  
  		// other time start time is between start and end time for this time
  		if (timeFrom.after(otherTimeFrom) && timeFrom.before(otherTimeTo)) {
  			return true;
  		}
  
  		// other time e is between start and end time for this time
  		if (timeTo.after(otherTimeFrom) && timeTo.before(otherTimeTo)) {
  			return true;
  		}
  
  		// if time starting before this time and ends after this time
  		if (timeFrom.before(otherTimeFrom) && timeTo.after(otherTimeTo)) {
  			return true;
  		}
  
  		return false;
  	}
docs: //////////////////////////////////////////////////////////////////////////////////