@Override public Duration multiplyBy(int m) { if (m == 1 || period == null) { return this; } else { MutablePeriod p = period.toMutablePeriod(); for (int i = 0; i < period.size(); i++) { p.setValue(i, period.getValue(i) * m); } return new DurationWithFields(p); } }
p.setValue(i, p.getValue(i) / m);
@Override public Duration multiplyBy(int m) { if (m == 1 || period == null) { return this; } else { MutablePeriod p = period.toMutablePeriod(); for (int i = 0; i < period.size(); i++) { p.setValue(i, period.getValue(i) * m); } return new DurationWithFields(p); } }
public Duration multiplyBy(int m) { if (m == 1 || period == null) { return this; } else { MutablePeriod p = period.toMutablePeriod(); for (int i = 0; i < period.size(); i++) { p.setValue(i, period.getValue(i) * m); } return new DurationWithFields(p); } }
public Duration multiplyBy(int m) { if (m == 1 || period == null) { return this; } else { MutablePeriod p = period.toMutablePeriod(); for (int i = 0; i < period.size(); i++) { p.setValue(i, period.getValue(i) * m); } return new DurationWithFields(p); } }
p.setValue(i, p.getValue(i) / m);
p.setValue(i, p.getValue(i) / m);
p.setValue(i, p.getValue(i) / m);