this.nodeId = node; this.answer = answer;
boolean same = (this == obj); if (!same && obj instanceof NodeAnswer) { NodeAnswer other = (NodeAnswer) obj; same = this.nodeId.equals(other.nodeId) && this.answer.equals(other.answer); } return same;
return this.answer;
return this.nodeId;
int result = 17; result = result * 29 + nodeId.hashCode(); result = result * 29 + answer.hashCode(); return result;
return "{ " + this.nodeId + " ; " + this.answer + " }";