return ((relationship.getStartTime() < endTime) && (relationship.getEndTime() > startTime));
return ((schedule.getOther(relationship).equals(otherObject)) && (time >= relationship.getStartTime()) && (time < relationship.getEndTime()));
      public boolean execute(Object obj) {        Relationship relationship = (Relationship)obj;        return ((relationship.getStartTime() < endTime) &&                (relationship.getEndTime() > startTime));      }