File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
onixlabs-corda-core-contract/src/main/kotlin/io/onixlabs/corda/core/contract Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11name =onixlabs-corda-core
22group =io.onixlabs
3- version =4.0.0-rc1
3+ version =4.0.0-rc2
44onixlabs.development.jarsign.keystore =../lib/onixlabs.development.pkcs12
55onixlabs.development.jarsign.password =5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3
Original file line number Diff line number Diff line change @@ -20,6 +20,20 @@ import net.corda.core.crypto.SecureHash
2020import net.corda.core.identity.AbstractParty
2121import java.security.PublicKey
2222
23+ /* *
24+ * Guarantees strict equality between the current [AbstractParty] and the other [AbstractParty].
25+ *
26+ * @param other The other [AbstractParty] to compare with the current [AbstractParty].
27+ * @return Returns true if the current [AbstractParty] and the other [AbstractParty] are strictly equal; otherwise, false.
28+ */
29+ fun AbstractParty.strictEquals (other : AbstractParty ): Boolean {
30+ val equalByReference = this == = other
31+ val equalByThisOther = equals(other)
32+ val equalByOtherThis = other == this
33+
34+ return equalByReference || (equalByThisOther && equalByOtherThis)
35+ }
36+
2337/* *
2438 * Gets the owning keys from an [Iterable] of [AbstractParty].
2539 *
You can’t perform that action at this time.
0 commit comments