private SUTime.Temporal extract(MatchResult m) { String val = null; if (valMatchGroup >= 0) { val = m.group(valMatchGroup); } SUTime.Duration d = extractDuration(m, val); if (valMatchGroup2 >= 0) { String val2 = m.group(valMatchGroup2); if (val2 != null) { SUTime.Duration d2 = extractDuration(m, val2); if (val != null && d != null) { d = new SUTime.DurationRange(d, d2); } else { d = d2; } } } return addEndPoints(d); }
public Duration add(Duration d) { Duration min2 = (minDuration != null) ? minDuration.add(d) : null; Duration max2 = (maxDuration != null) ? maxDuration.add(d) : null; return new DurationRange(this, min2, max2); }
public Duration divideBy(int m) { Duration min2 = (minDuration != null) ? minDuration.divideBy(m) : null; Duration max2 = (maxDuration != null) ? maxDuration.divideBy(m) : null; return new DurationRange(this, min2, max2); }
public Duration multiplyBy(int m) { Duration min2 = (minDuration != null) ? minDuration.multiplyBy(m) : null; Duration max2 = (maxDuration != null) ? maxDuration.multiplyBy(m) : null; return new DurationRange(this, min2, max2); }
public Duration multiplyBy(int m) { Duration min2 = (minDuration != null) ? minDuration.multiplyBy(m) : null; Duration max2 = (maxDuration != null) ? maxDuration.multiplyBy(m) : null; return new DurationRange(this, min2, max2); }
public Duration add(Duration d) { Duration min2 = (minDuration != null) ? minDuration.add(d) : null; Duration max2 = (maxDuration != null) ? maxDuration.add(d) : null; return new DurationRange(this, min2, max2); }
public Duration divideBy(int m) { Duration min2 = (minDuration != null) ? minDuration.divideBy(m) : null; Duration max2 = (maxDuration != null) ? maxDuration.divideBy(m) : null; return new DurationRange(this, min2, max2); } }
@Override public Duration add(Duration d) { Duration min2 = (minDuration != null) ? minDuration.add(d) : null; Duration max2 = (maxDuration != null) ? maxDuration.add(d) : null; return new DurationRange(this, min2, max2); }
@Override public Duration divideBy(int m) { Duration min2 = (minDuration != null) ? minDuration.divideBy(m) : null; Duration max2 = (maxDuration != null) ? maxDuration.divideBy(m) : null; return new DurationRange(this, min2, max2); }
@Override public Duration multiplyBy(int m) { Duration min2 = (minDuration != null) ? minDuration.multiplyBy(m) : null; Duration max2 = (maxDuration != null) ? maxDuration.multiplyBy(m) : null; return new DurationRange(this, min2, max2); }
@Override public Duration divideBy(int m) { Duration min2 = (minDuration != null) ? minDuration.divideBy(m) : null; Duration max2 = (maxDuration != null) ? maxDuration.divideBy(m) : null; return new DurationRange(this, min2, max2); }
@Override public Duration multiplyBy(int m) { Duration min2 = (minDuration != null) ? minDuration.multiplyBy(m) : null; Duration max2 = (maxDuration != null) ? maxDuration.multiplyBy(m) : null; return new DurationRange(this, min2, max2); }
@Override public Duration add(Duration d) { Duration min2 = (minDuration != null) ? minDuration.add(d) : null; Duration max2 = (maxDuration != null) ? maxDuration.add(d) : null; return new DurationRange(this, min2, max2); }