Skip to content

Instantly share code, notes, and snippets.

@donchan922 donchan922/Quote.java
Last active May 18, 2019

Embed
What would you like to do?
// レスポンスの中に定義したフィールド以外の項目があっても無視する
@JsonIgnoreProperties(ignoreUnknown = true)
public class Quote {
private String type;
private Value value;
// 引数なしのコンストラクタを定義しないとデシリアライズ(JSON -> Javaオブジェクトへの変換)時にエラーが起きる
public Quote() {
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Value getValue() {
return value;
}
public void setValue(Value value) {
this.value = value;
}
@Override
public String toString() {
return "Quote{" +
"type='" + type + '\'' +
", value=" + value +
'}';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.