File tree 2 files changed +15
-1
lines changed
onixlabs-corda-core-contract/src/main/kotlin/io/onixlabs/corda/core/contract
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
name =onixlabs-corda-core
2
2
group =io.onixlabs
3
- version =4.0.0-rc1
3
+ version =4.0.0-rc2
4
4
onixlabs.development.jarsign.keystore =../lib/onixlabs.development.pkcs12
5
5
onixlabs.development.jarsign.password =5891f47942424d2acbe108691fdb5ba258712fca7e4762be4327241ebf3dbfa3
Original file line number Diff line number Diff line change @@ -20,6 +20,20 @@ import net.corda.core.crypto.SecureHash
20
20
import net.corda.core.identity.AbstractParty
21
21
import java.security.PublicKey
22
22
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
+
23
37
/* *
24
38
* Gets the owning keys from an [Iterable] of [AbstractParty].
25
39
*
You can’t perform that action at this time.
0 commit comments