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