Guest User

Untitled

a guest
Jun 23rd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import com.fasterxml.jackson.annotation.JsonCreator;
  2. import com.fasterxml.jackson.annotation.JsonProperty;
  3.  
  4. public class JacksonImmutableClass {
  5.  
  6. private final String x;
  7. private final String y;
  8.  
  9. @JsonCreator
  10. public JacksonImmutableClass(@JsonProperty("x") String x, @JsonProperty("y") String y) {
  11. this.x = x;
  12. this.y = y;
  13. }
  14. }
Add Comment
Please, Sign In to add comment