@Test void equalsReturnsFalseWhenDepositDataIsDifferent() { DepositData otherDepositData = dataStructureUtil.randomDepositData(); while (Objects.equals(otherDepositData, depositData)) { otherDepositData = dataStructureUtil.randomDepositData(); } Deposit testDeposit = new Deposit(branch, otherDepositData); assertNotEquals(deposit, testDeposit); }
@Override public boolean equals(Object obj) { if (Objects.isNull(obj)) { return false; } if (this == obj) { return true; } if (!(obj instanceof Deposit)) { return false; } Deposit other = (Deposit) obj; return Objects.equals(this.getProof(), other.getProof()) && Objects.equals(this.getData(), other.getData()); }
Deposit implements Merkleizable, SimpleOffsetSerializable, SSZContainer { @Override public boolean equals(Object obj) { if (Objects.isNull(obj)) { return false; } if (this == obj) { return true; } if (!(obj instanceof Deposit)) { return false; } Deposit other = (Deposit) obj; return Objects.equals(this.getProof(), other.getProof()) && Objects.equals(this.getData(), other.getData()); } }
Deposit implements Merkleizable, SimpleOffsetSerializable, SSZContainer { @Override public boolean equals(Object obj) { if (Objects.isNull(obj)) { return false; } if (this == obj) { return true; } if (!(obj instanceof Deposit)) { return false; } Deposit other = (Deposit) obj; return Objects.equals(this.getProof(), other.getProof()) && Objects.equals(this.getData(), other.getData()); } Deposit(SSZVector<Bytes32> proof, DepositData data);  Deposit();  Deposit(DepositData data); }
Deposit implements Merkleizable, SimpleOffsetSerializable, SSZContainer { @Override public boolean equals(Object obj) { if (Objects.isNull(obj)) { return false; } if (this == obj) { return true; } if (!(obj instanceof Deposit)) { return false; } Deposit other = (Deposit) obj; return Objects.equals(this.getProof(), other.getProof()) && Objects.equals(this.getData(), other.getData()); } Deposit(SSZVector<Bytes32> proof, DepositData data);  Deposit();  Deposit(DepositData data); @Override int getSSZFieldCount(); @Override List<Bytes> get_fixed_parts(); @Override int hashCode(); @Override boolean equals(Object obj); SSZVector<Bytes32> getProof(); DepositData getData(); @Override Bytes32 hash_tree_root(); }
Deposit implements Merkleizable, SimpleOffsetSerializable, SSZContainer { @Override public boolean equals(Object obj) { if (Objects.isNull(obj)) { return false; } if (this == obj) { return true; } if (!(obj instanceof Deposit)) { return false; } Deposit other = (Deposit) obj; return Objects.equals(this.getProof(), other.getProof()) && Objects.equals(this.getData(), other.getData()); } Deposit(SSZVector<Bytes32> proof, DepositData data);  Deposit();  Deposit(DepositData data); @Override int getSSZFieldCount(); @Override List<Bytes> get_fixed_parts(); @Override int hashCode(); @Override boolean equals(Object obj); SSZVector<Bytes32> getProof(); DepositData getData(); @Override Bytes32 hash_tree_root(); static final int SSZ_FIELD_COUNT; }