Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for adapters (0.05 seconds)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

       * ```
       */
      private val attributeTypeAndValue: BasicDerAdapter<AttributeTypeAndValue> =
        Adapters.sequence(
          "AttributeTypeAndValue",
          Adapters.OBJECT_IDENTIFIER,
          Adapters.any(
            String::class to Adapters.UTF8_STRING,
            Nothing::class to Adapters.PRINTABLE_STRING,
            AnyValue::class to Adapters.ANY_VALUE,
          ),
          decompose = {
            listOf(
              it.type,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 13.6K bytes
    - Click Count (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

      private var limit = -1L
    
      /** Type hints scoped to the call stack, manipulated with [withTypeHint]. */
      private val typeHintStack = mutableListOf<Any?>()
    
      /**
       * The type hint for the current object. Used to pick adapters based on other fields, such as
       * in extensions which have different types depending on their extension ID.
       */
      var typeHint: Any?
        get() = typeHintStack.lastOrNull()
        set(value) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/log/Logger.java

            initialized = true;
        }
    
        /**
         * Returns the logger adapter factory.
         * <p>
         * Detects available logging frameworks in the following order:
         * 1. SLF4J (if available)
         * 2. Commons Logging (if available)
         * 3. java.util.logging (fallback)
         * </p>
         *
         * @return the logger adapter factory
         */
        protected static LoggerAdapterFactory getLoggerAdapterFactory() {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  4. docs/recipes.md

    === ":material-language-kotlin: Kotlin"
        ```kotlin
          private val client = OkHttpClient()
          private val moshi = Moshi.Builder().build()
          private val gistJsonAdapter = moshi.adapter(Gist::class.java)
    
          fun run() {
            val request = Request.Builder()
                .url("https://api.github.com/gists/c2a7c39532239ff261be")
                .build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 47.8K bytes
    - Click Count (0)
  5. android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt

        val request = Request.Builder().url("https://www.howsmyssl.com/a/check").build()
    
        val response = client.newCall(request).execute()
    
        val results =
          response.use {
            moshi.adapter(HowsMySslResults::class.java).fromJson(response.body.string())!!
          }
    
        Platform.get().log("results $results", Platform.WARN)
    
        assertTrue(results.session_ticket_supported)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/cache/CacheBuilder.java

     * code changes, you can use <a
     * href="https://www.javadoc.io/doc/com.github.ben-manes.caffeine/guava/latest/com.github.benmanes.caffeine.guava/com/github/benmanes/caffeine/guava/CaffeinatedGuava.html">its
     * {@code CaffeinatedGuava} adapter class</a>, which lets you build a Guava {@code Cache} or a Guava
     * {@code LoadingCache} backed by a Guava {@code CacheLoader}.
     *
     * <p>Caffeine's API for asynchronous operations uses {@code CompletableFuture}: <a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 52K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/primitives/Doubles.java

        double[] toDoubleArray() {
          return Arrays.copyOfRange(array, start, end);
        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    
      /**
       * This is adapted from the regex suggested by {@link Double#valueOf(String)} for prevalidating
       * inputs. All valid inputs must pass this regex, but it's semantically fine if not all inputs
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  8. CHANGELOG.md

     *  New: `OkHttpClient.Builder` now has APIs that use `kotlin.time.Duration`.
    
     *  New: `mockwebserver3.SocketPolicy` is now a sealed interface. This is one of several
        backwards-incompatible API changes that may impact early adopters of this alpha API.
    
     *  New: `mockwebserver3.Stream` for duplex streams.
    
     *  New: `mockwebserver3.MockResponseBody` for streamed response bodies.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 15 11:57:47 GMT 2026
    - 36.2K bytes
    - Click Count (2)
  9. guava/src/com/google/common/cache/CacheBuilder.java

     * code changes, you can use <a
     * href="https://www.javadoc.io/doc/com.github.ben-manes.caffeine/guava/latest/com.github.benmanes.caffeine.guava/com/github/benmanes/caffeine/guava/CaffeinatedGuava.html">its
     * {@code CaffeinatedGuava} adapter class</a>, which lets you build a Guava {@code Cache} or a Guava
     * {@code LoadingCache} backed by a Guava {@code CacheLoader}.
     *
     * <p>Caffeine's API for asynchronous operations uses {@code CompletableFuture}: <a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 13:13:59 GMT 2026
    - 51.7K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/math/LongMath.java

       *     is not precisely representable as a {@code double}
       * @since 30.0
       */
      @GwtIncompatible
      public static double roundToDouble(long x, RoundingMode mode) {
        // Logic adapted from ToDoubleRounder.
        double roundArbitrarily = (double) x;
        long roundArbitrarilyAsLong = (long) roundArbitrarily;
        int cmpXToRoundArbitrarily;
    
        if (roundArbitrarilyAsLong == Long.MAX_VALUE) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 09 23:01:02 GMT 2026
    - 46.8K bytes
    - Click Count (0)
Back to Top