Ejemplo 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;
  }
Ejemplo 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;
  }
Ejemplo 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;
  }