/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }
/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }
/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }
/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }
/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }
/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }
/** * Returns a copy of this time with the specified period added. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to add complex period instances. * Adding one field is best achieved using methods * like {@link #plusHours(int)}. * * @param period the period to add to this one, null means zero * @return a copy of this time with the period added * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime plus(ReadablePeriod period) { return withPeriodAdded(period, 1); }
/** * Returns a copy of this time with the specified period taken away. * <p> * If the amount is zero or null, then <code>this</code> is returned. * <p> * This method is typically used to subtract complex period instances. * Subtracting one field is best achieved using methods * like {@link #minusHours(int)}. * * @param period the period to reduce this instant by * @return a copy of this time with the period taken away * @throws ArithmeticException if the result exceeds the internal capacity */ public LocalTime minus(ReadablePeriod period) { return withPeriodAdded(period, -1); }