Added toString
This commit is contained in:
parent
21a6eceebd
commit
995f0b1795
@ -31,4 +31,8 @@ internal class ConnectionCounts {
|
||||
fun isEmpty(): Boolean {
|
||||
return connectionsPerIpCounts.isEmpty()
|
||||
}
|
||||
|
||||
override fun toString(): String {
|
||||
return connectionsPerIpCounts.entries.joinToString()
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user