Add toString() for BinaryPool

This commit is contained in:
J-Jamet committed 2020-09-23 16:47:10 +02:00
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
*/