Created
August 30, 2017 02:20
-
-
Save claymccoy/9622feeaf88e55aca762f6b041ad5ec5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AdditionResponse { | |
@JsonProperty private final int addend, augend; | |
public AdditionResponse(int addend, int augend) { | |
this.addend = addend; | |
this.augend = augend; | |
} | |
public int getSum() { | |
return addend + augend; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment