You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: onixlabs-corda-identity-framework-contract/src/main/kotlin/io/onixlabs/corda/identityframework/contract/accounts/AccountParty.kt
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,23 @@ class AccountParty(
40
40
valaccountType:Class<outAccount>
41
41
) : AbstractParty(owner.owningKey) {
42
42
43
+
/**
44
+
* @property DELIMITER The delimiter that will be used to format the account party.
45
+
*/
43
46
companionobject {
44
47
constvalDELIMITER='@'
45
48
}
46
49
50
+
/**
51
+
* Determines whether this [AccountParty] owns the specified [Account].
52
+
*
53
+
* @param account The account for which to determine ownership.
54
+
* @return Returns true if this [AccountParty] owns the specified [Account]; otherwise, false.
55
+
*/
56
+
funowns(account:Account): Boolean {
57
+
returnthis== account.toAccountParty()
58
+
}
59
+
47
60
/**
48
61
* Gets an account resolver to resolve this [AccountParty] back to the associated [Account].
0 commit comments