Searched refs:scalar (Results 1 - 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
H A DChronoPeriod.java229 * multiplied by the specified scalar.
236 * @param scalar the scalar to multiply by, not null
238 * by the scalar, not null
241 ChronoPeriod multipliedBy(int scalar); argument
H A DChronoPeriodImpl.java215 public ChronoPeriod multipliedBy(int scalar) { argument
216 if (this.isZero() || scalar == 1) {
221 Math.multiplyExact(years, scalar),
222 Math.multiplyExact(months, scalar),
223 Math.multiplyExact(days, scalar));
/libcore/ojluni/src/main/java/java/time/
H A DPeriod.java770 * by the specified scalar.
778 * @param scalar the scalar to multiply by, not null
779 * @return a {@code Period} based on this period with the amounts multiplied by the scalar, not null
782 public Period multipliedBy(int scalar) { argument
783 if (this == ZERO || scalar == 1) {
787 Math.multiplyExact(years, scalar),
788 Math.multiplyExact(months, scalar),
789 Math.multiplyExact(days, scalar));

Completed in 353 milliseconds