- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for emptyTags (0.05 seconds)
-
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")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Oct 24 11:37:46 GMT 2025 - 7.1K bytes - Click Count (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. *
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 3.9K bytes - Click Count (0)