Added toString

This commit is contained in:
Robinson 2022-07-15 00:57:32 -04:00
parent 21a6eceebd
commit 995f0b1795
No known key found for this signature in database
GPG Key ID: 8E7DB78588BD6F5C
2 changed files with 8 additions and 0 deletions

View File

@ -31,4 +31,8 @@ internal class ConnectionCounts {
fun isEmpty(): Boolean {
return connectionsPerIpCounts.isEmpty()
}
override fun toString(): String {
return connectionsPerIpCounts.entries.joinToString()
}
}

View File

@ -91,4 +91,8 @@ class RandomId65kAllocator(private val min: Int = Integer.MIN_VALUE, max: Int =
fun isEmpty(): Boolean {
return assigned.value == 0
}
override fun toString(): String {
return "$assigned"
}
}