@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; }
@Test public void testVMTraceVMOperation() { VMTrace vmTrace1 = new VMTrace("one", new ArrayList<>()); VMTrace vmTrace2 = new VMTrace("two", new ArrayList<>()); EqualsVerifier.forClass(VMTrace.VMOperation.class) .withPrefabValues(VMTrace.class, vmTrace1, vmTrace2) .suppress(Warning.NONFINAL_FIELDS) .suppress(Warning.STRICT_INHERITANCE) .verify(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof VMOperation)) { return false; } VMOperation that = (VMOperation) o; if (getSub() != null ? !getSub().equals(that.getSub()) : that.getSub() != null) { return false; } if (getCost() != null ? !getCost().equals(that.getCost()) : that.getCost() != null) { return false; } if (getEx() != null ? !getEx().equals(that.getEx()) : that.getEx() != null) { return false; } return getPc() != null ? getPc().equals(that.getPc()) : that.getPc() == null; }
@Test public void testFullTraceInfo() { VMTrace vmTrace1 = new VMTrace("one", new ArrayList<>()); VMTrace vmTrace2 = new VMTrace("two", new ArrayList<>()); EqualsVerifier.forClass(FullTraceInfo.class) .withPrefabValues(VMTrace.class, vmTrace1, vmTrace2) .suppress(Warning.NONFINAL_FIELDS) .suppress(Warning.STRICT_INHERITANCE) .verify(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof VMTrace)) { return false; } VMTrace vmTrace = (VMTrace) o; if (getCode() != null ? !getCode().equals(vmTrace.getCode()) : vmTrace.getCode() != null) { return false; } return getOps() != null ? getOps().equals(vmTrace.getOps()) : vmTrace.getOps() == null; }
@Override public int hashCode() { int result = getSub() != null ? getSub().hashCode() : 0; result = 31 * result + (getCost() != null ? getCost().hashCode() : 0); result = 31 * result + (getEx() != null ? getEx().hashCode() : 0); result = 31 * result + (getPc() != null ? getPc().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; }
@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 VMOperation)) { return false; } VMOperation that = (VMOperation) o; if (getSub() != null ? !getSub().equals(that.getSub()) : that.getSub() != null) { return false; } if (getCost() != null ? !getCost().equals(that.getCost()) : that.getCost() != null) { return false; } if (getEx() != null ? !getEx().equals(that.getEx()) : that.getEx() != null) { return false; } return getPc() != null ? getPc().equals(that.getPc()) : that.getPc() == null; }
@Override public int hashCode() { int result = getSub() != null ? getSub().hashCode() : 0; result = 31 * result + (getCost() != null ? getCost().hashCode() : 0); result = 31 * result + (getEx() != null ? getEx().hashCode() : 0); result = 31 * result + (getPc() != null ? getPc().hashCode() : 0); return result; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof VMTrace)) { return false; } VMTrace vmTrace = (VMTrace) o; if (getCode() != null ? !getCode().equals(vmTrace.getCode()) : vmTrace.getCode() != null) { return false; } return getOps() != null ? getOps().equals(vmTrace.getOps()) : vmTrace.getOps() == null; }