@Override public int hashCode() { int result = getOutput() != null ? getOutput().hashCode() : 0; result = 31 * result + (getStateDiff() != null ? getStateDiff().hashCode() : 0); result = 31 * result + (getTrace() != null ? getTrace().hashCode() : 0); result = 31 * result + (getVmTrace() != null ? getVmTrace().hashCode() : 0); return result; }
"0x6060604052361561004a576000357c01", Arrays.asList(operation1, operation2)); FullTraceInfo info = new FullTraceInfo("0x", null, null, trace); assertThat(response.getFullTraceInfo(), equalTo(info));
FullTraceInfo info = new FullTraceInfo("0x", stateDiffMap, null, null); assertThat(response.getFullTraceInfo(), equalTo(info));
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof FullTraceInfo)) { return false; } FullTraceInfo that = (FullTraceInfo) o; if (getOutput() != null ? !getOutput().equals(that.getOutput()) : that.getOutput() != null) { return false; } if (getStateDiff() != null ? !getStateDiff().equals(that.getStateDiff()) : that.getStateDiff() != null) { return false; } if (getTrace() != null ? !getTrace().equals(that.getTrace()) : that.getTrace() != null) { return false; } return getVmTrace() != null ? getVmTrace().equals(that.getVmTrace()) : that.getVmTrace() == null; }
traces.add(trace3); traces.add(trace4); FullTraceInfo info = new FullTraceInfo("0x", null, traces, null); assertThat(response.getFullTraceInfo(), equalTo(info));
@Override public int hashCode() { int result = getOutput() != null ? getOutput().hashCode() : 0; result = 31 * result + (getStateDiff() != null ? getStateDiff().hashCode() : 0); result = 31 * result + (getTrace() != null ? getTrace().hashCode() : 0); result = 31 * result + (getVmTrace() != null ? getVmTrace().hashCode() : 0); return result; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof FullTraceInfo)) { return false; } FullTraceInfo that = (FullTraceInfo) o; if (getOutput() != null ? !getOutput().equals(that.getOutput()) : that.getOutput() != null) { return false; } if (getStateDiff() != null ? !getStateDiff().equals(that.getStateDiff()) : that.getStateDiff() != null) { return false; } if (getTrace() != null ? !getTrace().equals(that.getTrace()) : that.getTrace() != null) { return false; } return getVmTrace() != null ? getVmTrace().equals(that.getVmTrace()) : that.getVmTrace() == null; }