FormAttachment plus (int value) { return new FormAttachment (numerator, denominator, offset + value);
FormAttachment plus (FormAttachment attachment) { FormAttachment solution = new FormAttachment (); solution.numerator = numerator * attachment.denominator + denominator * attachment.numerator; solution.denominator = denominator * attachment.denominator; int gcd = gcd (solution.denominator, solution.numerator); solution.numerator = solution.numerator / gcd; solution.denominator = solution.denominator / gcd; solution.offset = offset + attachment.offset; return solution;
FormAttachment plus (int value) {	return new FormAttachment (numerator, denominator, offset + value);}