Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for toMultimap (0.08 sec)

  1. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

          Headers.headersOf(
            "cache-control",
            "no-cache",
            "cache-control",
            "no-store",
            "user-agent",
            "OkHttp",
          )
        val headerMap = headers.toMultimap()
        assertThat(headerMap["cache-control"]!!.size).isEqualTo(2)
        assertThat(headerMap["user-agent"]!!.size).isEqualTo(1)
      }
    
      @Test fun toMultimapUsesCanonicalCase() {
        val headers =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CollectCollectors.java

      }
    
      static <
              T extends @Nullable Object,
              K extends @Nullable Object,
              V extends @Nullable Object,
              M extends Multimap<K, V>>
          Collector<T, ?, M> toMultimap(
              Function<? super T, ? extends K> keyFunction,
              Function<? super T, ? extends V> valueFunction,
              Supplier<M> multimapSupplier) {
        checkNotNull(keyFunction);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Headers.kt

       *
       *  * `Authorization`
       *  * `Cookie`
       *  * `Proxy-Authorization`
       *  * `Set-Cookie`
       */
      override fun toString(): String = commonToString()
    
      fun toMultimap(): Map<String, List<String>> {
        val result = TreeMap<String, MutableList<String>>(String.CASE_INSENSITIVE_ORDER)
        for (i in 0 until size) {
          val name = name(i).lowercase(Locale.US)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Multimaps.java

              M extends Multimap<K, V>>
          Collector<T, ?, M> toMultimap(
              java.util.function.Function<? super T, ? extends K> keyFunction,
              java.util.function.Function<? super T, ? extends V> valueFunction,
              java.util.function.Supplier<M> multimapSupplier) {
        return CollectCollectors.<T, K, V, M>toMultimap(keyFunction, valueFunction, multimapSupplier);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        val values: List<String> = headers.values("")
        val byteCount: Long = headers.byteCount()
        val builder: Headers.Builder = headers.newBuilder()
        val multimap: Map<String, List<String>> = headers.toMultimap()
      }
    
      @Test
      fun headersBuilder() {
        var builder: Headers.Builder = Headers.Builder()
        builder = builder.add("")
        builder = builder.add("", "")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  6. okhttp/api/okhttp.api

    	public static final fun of (Ljava/util/Map;)Lokhttp3/Headers;
    	public static final fun of ([Ljava/lang/String;)Lokhttp3/Headers;
    	public final fun size ()I
    	public final fun toMultimap ()Ljava/util/Map;
    	public fun toString ()Ljava/lang/String;
    	public final fun value (I)Ljava/lang/String;
    	public final fun values (Ljava/lang/String;)Ljava/util/List;
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top