Created
August 30, 2017 02:19
-
-
Save claymccoy/8f5f1dd5b2f4caa0f38f480b737d1d5b 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, addend2; | |
public AdditionResponse(int addend, int addend2) { | |
this.addend = addend; | |
this.addend2 = addend2; | |
} | |
public int getSum() { | |
return addend + addend2; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment