Lines Matching refs:months
117 * The number of months.
119 final int months;
128 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) {
132 this.months = months;
142 return months;
163 return years == 0 && months == 0 && days == 0;
168 return years < 0 || months < 0 || days < 0;
178 Math.addExact(months, amount.months),
188 Math.subtractExact(months, amount.months),
219 Math.multiplyExact(months, scalar),
228 long totalMonths = years * monthRange + months;
231 if (splitYears == years && splitMonths == months) {
241 * Calculates the range of months.
257 if (months == 0) {
264 temporal = temporal.plus(years * monthRange + months, MONTHS);
269 temporal = temporal.plus(months, MONTHS);
283 if (months == 0) {
290 temporal = temporal.minus(years * monthRange + months, MONTHS);
295 temporal = temporal.minus(months, MONTHS);
323 return years == other.years && months == other.months &&
331 return (years + Integer.rotateLeft(months, 8) + Integer.rotateLeft(days, 16)) ^ chrono.hashCode();
345 if (months != 0) {
346 buf.append(months).append('M');
363 * out.writeInt(months);
386 out.writeInt(months);
393 int months = in.readInt();
395 return new ChronoPeriodImpl(chrono, years, months, days);