mirror of
https://github.com/corda/corda.git
synced 2025-01-22 04:18:31 +00:00
Rename leavesKeys to leafKeys.
This commit is contained in:
parent
bd6ce2765e
commit
06c8b880a3
@ -80,7 +80,7 @@ class CompositeKey private constructor (val threshold: Int,
|
||||
/**
|
||||
* Set of all leaf keys of that CompositeKey.
|
||||
*/
|
||||
val leavesKeys: Set<PublicKey>
|
||||
val leafKeys: Set<PublicKey>
|
||||
get() = children.flatMap { it.node.keys }.toSet() // Uses PublicKey.keys extension.
|
||||
|
||||
override fun equals(other: Any?): Boolean {
|
||||
|
@ -118,7 +118,7 @@ fun PublicKey.toStringShort(): String {
|
||||
}
|
||||
|
||||
val PublicKey.keys: Set<PublicKey> get() {
|
||||
return if (this is CompositeKey) this.leavesKeys
|
||||
return if (this is CompositeKey) this.leafKeys
|
||||
else setOf(this)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user