- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for emptyTags (0.03 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/TagsTest.kt
class TagsTest { @Test fun emptyTags() { val tags = EmptyTags assertThat(tags[String::class]).isNull() } @Test fun singleElement() { val tags = EmptyTags.plus(String::class, "hello") assertThat(tags[String::class]).isEqualTo("hello") } @Test fun multipleElements() { val tags = EmptyTags .plus(String::class, "hello")Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 24 11:37:46 UTC 2025 - 7.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/Tags.kt
import java.util.concurrent.atomic.AtomicReference import kotlin.reflect.KClass /** * An immutable collection of key-value pairs implemented as a singly-linked list. * * Build up a collection by starting with [EmptyTags] and repeatedly calling [plus]. Each such call * returns a new instance. * * This collection is optimized for safe concurrent access over a very small number of elements. *
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 24 11:37:46 UTC 2025 - 3.9K bytes - Viewed (0)