@Override public int hashCode() { int result = getBalance() != null ? getBalance().hashCode() : 0; result = 31 * result + (getCode() != null ? getCode().hashCode() : 0); result = 31 * result + (getNonce() != null ? getNonce().hashCode() : 0); result = 31 * result + (getStorage() != null ? getStorage().hashCode() : 0); return result; }
@Override public String toString() { return "StateDiff{" + "balance=" + getBalance() + ", code=" + getCode() + ", nonce=" + getNonce() + ", storage=" + getStorage() + '}'; } }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof StateDiff)) { return false; } StateDiff that = (StateDiff) o; if (getBalance() != null ? !getBalance().equals(that.getBalance()) : that.getBalance() != null) { return false; } if (getCode() != null ? !getCode().equals(that.getCode()) : that.getCode() != null) { return false; } if (getNonce() != null ? !getNonce().equals(that.getNonce()) : that.getNonce() != null) { return false; } return getStorage() != null ? getStorage().equals(that.getStorage()) : that.getStorage() == null; }
@Override public int hashCode() { int result = getBalance() != null ? getBalance().hashCode() : 0; result = 31 * result + (getCode() != null ? getCode().hashCode() : 0); result = 31 * result + (getNonce() != null ? getNonce().hashCode() : 0); result = 31 * result + (getStorage() != null ? getStorage().hashCode() : 0); return result; }
@Override public String toString() { return "StateDiff{" + "balance=" + getBalance() + ", code=" + getCode() + ", nonce=" + getNonce() + ", storage=" + getStorage() + '}'; } }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || !(o instanceof StateDiff)) { return false; } StateDiff that = (StateDiff) o; if (getBalance() != null ? !getBalance().equals(that.getBalance()) : that.getBalance() != null) { return false; } if (getCode() != null ? !getCode().equals(that.getCode()) : that.getCode() != null) { return false; } if (getNonce() != null ? !getNonce().equals(that.getNonce()) : that.getNonce() != null) { return false; } return getStorage() != null ? getStorage().equals(that.getStorage()) : that.getStorage() == null; }