/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds added. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to add, may be negative, null means zero * @return the new period plus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds plus(Seconds seconds) { if (seconds == null) { return this; } return plus(seconds.getValue()); }
/** * Returns a new instance with the specified number of seconds added. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to add, may be negative, null means zero * @return the new period plus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds plus(Seconds seconds) { if (seconds == null) { return this; } return plus(seconds.getValue()); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds added. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to add, may be negative, null means zero * @return the new period plus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds plus(Seconds seconds) { if (seconds == null) { return this; } return plus(seconds.getValue()); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to take away, may be negative * @return the new period minus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds minus(int seconds) { return plus(FieldUtils.safeNegate(seconds)); }
/** * Returns a new instance with the specified number of seconds added. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to add, may be negative, null means zero * @return the new period plus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds plus(Seconds seconds) { if (seconds == null) { return this; } return plus(seconds.getValue()); }
/** * Returns a new instance with the specified number of seconds added. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to add, may be negative, null means zero * @return the new period plus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds plus(Seconds seconds) { if (seconds == null) { return this; } return plus(seconds.getValue()); }
/** * Returns a new instance with the specified number of seconds added. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to add, may be negative, null means zero * @return the new period plus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds plus(Seconds seconds) { if (seconds == null) { return this; } return plus(seconds.getValue()); }
/** * Returns a new instance with the specified number of seconds added. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to add, may be negative, null means zero * @return the new period plus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds plus(Seconds seconds) { if (seconds == null) { return this; } return plus(seconds.getValue()); }
/** * Returns a new instance with the specified number of seconds added. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to add, may be negative, null means zero * @return the new period plus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds plus(Seconds seconds) { if (seconds == null) { return this; } return plus(seconds.getValue()); }
/** * Returns a new instance with the specified number of seconds added. * <p> * This instance is immutable and unaffected by this method call. * * @param seconds the amount of seconds to add, may be negative, null means zero * @return the new period plus the specified number of seconds * @throws ArithmeticException if the result overflows an int */ public Seconds plus(Seconds seconds) { if (seconds == null) { return this; } return plus(seconds.getValue()); }