Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 4,925 for KClass (0.13 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/Tags.kt

     */
    internal sealed class Tags {
      /**
       * Returns a tags instance that maps [key] to [value]. If [value] is null, this returns a tags
       * instance that does not have any mapping for [key].
       */
      abstract fun <T : Any> plus(
        key: KClass<T>,
        value: T?,
      ): Tags
    
      abstract operator fun <T : Any> get(key: KClass<T>): T?
    }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 24 11:37:46 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt

      override fun <T : Any> tag(type: KClass<T>): T? = error("unexpected")
    
      override fun <T> tag(type: Class<out T>): T? = error("unexpected")
    
      override fun <T : Any> tag(
        type: KClass<T>,
        computeIfAbsent: () -> T,
      ): T = error("unexpected")
    
      override fun <T : Any> tag(
        type: Class<T>,
        computeIfAbsent: () -> T,
      ): T = error("unexpected")
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  3. build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiExtensionGeneratorFacade.kt

    //
    // Rules
    // 1. an extension should either require no type parameters, a single reifeid type parameter, at call site
    // 2. all type parameters must all be reifeid or values (TypeOf, KClass or Class)
    // 3. when overloading, prefer TypeOf over Class
    // 4. in case the policy forbids your overloads, discuss
    private
    fun kotlinExtensionFunctionsFor(type: ApiType, sinceSupplier: (String) -> String?): Sequence<KotlinExtensionFunction> =
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Mar 12 15:56:18 GMT 2025
    - 17.8K bytes
    - Click Count (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Call.kt

       * val copy = original.clone()
       *
       * val myTag = original.tag(MyTag::class)
       * if (myTag != null) {
       *   copy.tag(MyTag::class) { myTag }
       * }
       * ```
       *
       * ```java
       * Call copy = original.clone();
       *
       * MyTag myTag = original.tag(MyTag.class);
       * if (myTag != null) {
       *   copy.tag(MyTag.class, () -> myTag);
       * }
       * ```
       *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

        assertThat(recordedRequest.url.encodedQuery)
          .isEqualTo("ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ")
    
        assertThat(cacheEvents()).containsExactly(CacheMiss::class)
      }
    
      private fun cacheEvents(): List<KClass<out CallEvent>> =
        eventRecorder
          .recordedEventTypes()
          .filter { "Cache" in it.simpleName!! }
          .also { eventRecorder.clearAllEvents() }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 11.9K bytes
    - Click Count (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

            override fun <T : Any> tag(type: KClass<T>): T? = TODO()
    
            override fun <T> tag(type: Class<out T>): T? = TODO()
    
            override fun <T : Any> tag(
              type: KClass<T>,
              computeIfAbsent: () -> T,
            ): T = TODO()
    
            override fun <T : Any> tag(
              type: Class<T>,
              computeIfAbsent: () -> T,
            ): T = TODO()
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 47K bytes
    - Click Count (0)
  7. okhttp/api/jvm/okhttp.api

    	public abstract fun request ()Lokhttp3/Request;
    	public abstract fun tag (Ljava/lang/Class;)Ljava/lang/Object;
    	public abstract fun tag (Ljava/lang/Class;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
    	public abstract fun tag (Lkotlin/reflect/KClass;)Ljava/lang/Object;
    	public abstract fun tag (Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
    	public abstract fun timeout ()Lokio/Timeout;
    }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.2K bytes
    - Click Count (0)
  8. okhttp/api/android/okhttp.api

    	public abstract fun request ()Lokhttp3/Request;
    	public abstract fun tag (Ljava/lang/Class;)Ljava/lang/Object;
    	public abstract fun tag (Ljava/lang/Class;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
    	public abstract fun tag (Lkotlin/reflect/KClass;)Ljava/lang/Object;
    	public abstract fun tag (Lkotlin/reflect/KClass;Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
    	public abstract fun timeout ()Lokio/Timeout;
    }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.3K bytes
    - Click Count (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

            .url("https://square.com")
            .tag(Any::class.java, objectTag)
            .tag(UUID::class.java, uuidTag)
            .tag(String::class.java, stringTag)
            .tag(Long::class.javaObjectType, longTag)
            .build()
        assertThat(request.tag()).isSameAs(objectTag)
        assertThat(request.tag(Any::class.java)).isSameAs(objectTag)
        assertThat(request.tag(UUID::class.java)).isSameAs(uuidTag)
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Oct 24 11:36:14 GMT 2025
    - 24.4K bytes
    - Click Count (0)
  10. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/BuildScanInfoCollectingServices.kt

     * which collects necessary information for Build Scan.
     */
    fun <T : AbstractBuildScanInfoCollectingService> Project.registerBuildScanInfoCollectingService(
        /* the implementation class to collect information from task execution result */
        klass: Class<T>,
        /* which tasks we need to monitor? For example, cache-miss-monitor monitors `AbstractCompile` tasks */
        taskFilter: (Task) -> Boolean,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Jun 10 05:45:46 GMT 2025
    - 3.1K bytes
    - Click Count (0)
Back to Top