Skip to content

Instantly share code, notes, and snippets.

@claymccoy
Created August 30, 2017 02:20
Show Gist options
  • Save claymccoy/9622feeaf88e55aca762f6b041ad5ec5 to your computer and use it in GitHub Desktop.
Save claymccoy/9622feeaf88e55aca762f6b041ad5ec5 to your computer and use it in GitHub Desktop.
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