Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 165 for adapter (0.22 sec)

  1. android/guava/src/com/google/common/util/concurrent/JdkFutureAdapters.java

        }
        return new ListenableFutureAdapter<>(future, executor);
      }
    
      /**
       * An adapter to turn a {@link Future} into a {@link ListenableFuture}. This will wait on the
       * future to finish, and when it completes, run the listeners. This implementation will wait on
       * the source future indefinitely, so if the source future never completes, the adapter will never
       * complete either.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

    public final class ParseResponseWithMoshi {
      private final OkHttpClient client = new OkHttpClient();
      private final Moshi moshi = new Moshi.Builder().build();
      private final JsonAdapter<Gist> gistJsonAdapter = moshi.adapter(Gist.class);
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://api.github.com/gists/c2a7c39532239ff261be")
            .build();
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun May 22 01:29:42 GMT 2016
    - 1.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/ChecksumHashFunction.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.errorprone.annotations.Immutable;
    import java.io.Serializable;
    import java.util.zip.Checksum;
    
    /**
     * {@link HashFunction} adapter for {@link Checksum} instances.
     *
     * @author Colin Decker
     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    final class ChecksumHashFunction extends AbstractHashFunction implements Serializable {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 2.7K bytes
    - Viewed (0)
  4. fastapi/_compat.py

                exclude_none: bool = False,
            ) -> Any:
                # What calls this code passes a value that already called
                # self._type_adapter.validate_python(value)
                return self._type_adapter.dump_python(
                    value,
                    mode=mode,
                    include=include,
                    exclude=exclude,
                    by_alias=by_alias,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/ParseResponseWithMoshi.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class ParseResponseWithMoshi {
      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()
        client.newCall(request).execute().use { response ->
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.6K bytes
    - Viewed (1)
  6. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

    import java.io.Serializable;
    import java.nio.ByteBuffer;
    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.util.Arrays;
    
    /**
     * {@link HashFunction} adapter for {@link MessageDigest} instances.
     *
     * @author Kevin Bourrillion
     * @author Dimitris Andreou
     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 5K bytes
    - Viewed (0)
  7. 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,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  8. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

      /** Names leading to the current location in the ASN.1 document. */
      private val path = mutableListOf<String>()
    
      /**
       * False unless we made a recursive call to [write] at the current stack frame. The explicit box
       * adapter can clear this to synthesize non-constructed values that are embedded in octet strings.
       */
      var constructed = false
    
      fun write(
        name: String,
        tagClass: Int,
        tag: Long,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  9. docs/LICENSE

         Material is a musical work, performance, or sound recording,
         Adapted Material is always produced where the Licensed Material is
         synched in timed relation with a moving image.
    
      b. Adapter's License means the license You apply to Your Copyright
         and Similar Rights in Your contributions to Adapted Material in
         accordance with the terms and conditions of this Public License.
    
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon May 10 16:50:06 GMT 2021
    - 18.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/MacHashFunction.java

    import java.nio.ByteBuffer;
    import java.security.InvalidKeyException;
    import java.security.Key;
    import java.security.NoSuchAlgorithmException;
    import javax.crypto.Mac;
    
    /**
     * {@link HashFunction} adapter for {@link Mac} instances.
     *
     * @author Kurt Alfred Kluever
     */
    @Immutable
    @ElementTypesAreNonnullByDefault
    final class MacHashFunction extends AbstractHashFunction {
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 15 22:31:55 GMT 2022
    - 3.6K bytes
    - Viewed (0)
Back to top