-
private val contentToStringTemp: String by lazy { this.delegate.joinToString("") { it.contentToString() } }
override fun contentToString(): String = contentToStringTemp 请问这个方法多次调用会导致多次拼接吗? |
Beta Was this translation helpful? Give feedback.
Answered by
Him188
Jan 21, 2021
Replies: 1 comment 1 reply
-
有缓存,会在第一次调用时拼接 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Alceatraz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
有缓存,会在第一次调用时拼接