Esempio n. 1
0
  private static GanttDate min(GanttDate one, GanttDate other) {
    if (one == null) {
      return other;
    }

    if (other == null) {
      return one;
    }

    return one.compareTo(other) < 0 ? one : other;
  }
Esempio n. 2
0
  public GanttDate getEnd() {
    GanttDate result = getEndPeriod();

    for (LoadTimeLine loadTimeLine : getChildren()) {
      GanttDate end = loadTimeLine.getEnd();
      if (end != null) {
        result = result == null || result.compareTo(end) < 0 ? end : result;
      }
    }

    return result;
  }
Esempio n. 3
0
  public GanttDate getStart() {
    GanttDate result = getStartPeriod();

    for (LoadTimeLine loadTimeLine : getChildren()) {
      GanttDate start = loadTimeLine.getStart();

      if (start != null) {
        result = result == null || result.compareTo(start) > 0 ? start : result;
      }
    }

    return result;
  }