mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-12-06 00:32:32 -08:00
Add toString() for BinaryPool
This commit is contained in:
1 parent
62cca09045
commit
a45d114527
1 file changed
+11
@@ -137,6 +137,17 @@ class BinaryPool {
|
||||
pool.clear()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
val stringBuffer = StringBuffer()
|
||||
for ((key, value) in pool) {
|
||||
if (stringBuffer.isNotEmpty())
|
||||
stringBuffer.append(", {$key:$value}")
|
||||
else
|
||||
stringBuffer.append("{$key:$value}")
|
||||
}
|
||||
return stringBuffer.toString()
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility data class to order binaries
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user