Rename leavesKeys to leafKeys.

This commit is contained in:
Katarzyna Streich 2017-04-28 11:27:29 +01:00 committed by Chris Rankin
parent bd6ce2765e
commit 06c8b880a3
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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)
}