/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
/** * Returns a new instance with the specified number of minutes taken away. * <p> * This instance is immutable and unaffected by this method call. * * @param minutes the amount of minutes to take away, may be negative, null means zero * @return the new period minus the specified number of minutes * @throws ArithmeticException if the result overflows an int */ public Minutes minus(Minutes minutes) { if (minutes == null) { return this; } return minus(minutes.getValue()); }
if (!isBusinessDay(d)) { Duration dayDuration = new Duration(d, d.plusDays(1)); minutes = minutes.minus(int) dayDuration.getStandardMinutes());