@Test public void testToString() { Analysis a = new Analysis("foo", Maps.newHashMap()); assertThat(a.toString(), equalTo("Analysis{name=foo, questions={}}")); a.addQuestion("question", "questionContent"); assertThat(a.toString(), equalTo("Analysis{name=foo, questions={question=questionContent}}")); }
@Override public String toString() { return MoreObjects.toStringHelper(Analysis.class) .add(PROP_NAME, _name) .add(PROP_QUESTIONS, _questions) .toString(); }
Analysis { @Override public String toString() { return MoreObjects.toStringHelper(Analysis.class) .add(PROP_NAME, _name) .add(PROP_QUESTIONS, _questions) .toString(); } }
Analysis { @Override public String toString() { return MoreObjects.toStringHelper(Analysis.class) .add(PROP_NAME, _name) .add(PROP_QUESTIONS, _questions) .toString(); } @JsonCreator  Analysis(
      @JsonProperty(PROP_NAME) String name,
      @JsonProperty(PROP_QUESTIONS) @Nullable Map<String, String> questions); }
Analysis { @Override public String toString() { return MoreObjects.toStringHelper(Analysis.class) .add(PROP_NAME, _name) .add(PROP_QUESTIONS, _questions) .toString(); } @JsonCreator  Analysis(
      @JsonProperty(PROP_NAME) String name,
      @JsonProperty(PROP_QUESTIONS) @Nullable Map<String, String> questions); @JsonProperty(PROP_NAME) String getName(); @JsonProperty(PROP_QUESTIONS) Map<String, String> getQuestions(); void addQuestion(String questionName, String questionContent); void deleteQuestion(String questionName); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
Analysis { @Override public String toString() { return MoreObjects.toStringHelper(Analysis.class) .add(PROP_NAME, _name) .add(PROP_QUESTIONS, _questions) .toString(); } @JsonCreator  Analysis(
      @JsonProperty(PROP_NAME) String name,
      @JsonProperty(PROP_QUESTIONS) @Nullable Map<String, String> questions); @JsonProperty(PROP_NAME) String getName(); @JsonProperty(PROP_QUESTIONS) Map<String, String> getQuestions(); void addQuestion(String questionName, String questionContent); void deleteQuestion(String questionName); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }