Internal code style

This commit is contained in:
Him188 2020-12-16 18:36:56 +08:00
parent fefadad3f4
commit c6eef9f68e

View File

@ -53,9 +53,7 @@ internal fun <C : Any?> ConcurrentLinkedQueue<C>.addLast(c: C): Boolean = this.a
* ```
*/
public val ContactList<*>.idContentString: String
get() = "[" + buildString { delegate.forEach { append(it.id).append(", ") } }.dropLast(
2
) + "]"
get() = "[" + delegate.joinToString { it.id.toString() } + "]"
internal operator fun <C : Contact> LockFreeLinkedList<C>.get(id: Long): C {