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