Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 895 for apply (0.2 sec)

  1. android/guava-tests/test/com/google/common/base/EquivalenceTest.java

        assertTrue(equalTo1.apply("1"));
        assertFalse(equalTo1.apply("2"));
        assertFalse(equalTo1.apply(null));
        Predicate<@Nullable Object> isNull = Equivalence.equals().equivalentTo(null);
        assertFalse(isNull.apply("1"));
        assertFalse(isNull.apply("2"));
        assertTrue(isNull.apply(null));
    
        new EqualsTester()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

        }
      }
      return null
    }
    
    internal fun Headers.Builder.commonAdd(
      name: String,
      value: String,
    ) = apply {
      headersCheckName(name)
      headersCheckValue(value, name)
      commonAddLenient(name, value)
    }
    
    internal fun Headers.Builder.commonAddAll(headers: Headers) =
      apply {
        for (i in 0 until headers.size) {
          commonAddLenient(headers.name(i), headers.value(i))
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt

      name: String,
      value: String,
    ) = apply {
      headers[name] = value
    }
    
    fun Request.Builder.commonAddHeader(
      name: String,
      value: String,
    ) = apply {
      headers.add(name, value)
    }
    
    fun Request.Builder.commonRemoveHeader(name: String) =
      apply {
        headers.removeAll(name)
      }
    
    fun Request.Builder.commonHeaders(headers: Headers) =
      apply {
        this.headers = headers.newBuilder()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

       * | `http://host/?`                   | `""`                   |
       * | `http://host/?a=apple&k=key+lime` | `"a=apple&k=key+lime"` |
       * | `http://host/?a=apple&a=apricot`  | `"a=apple&a=apricot"`  |
       * | `http://host/?a=apple&b`          | `"a=apple&b"`          |
       */
      @get:JvmName("encodedQuery")
      val encodedQuery: String?
        get() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/base/Function.java

       *       Objects.equal}{@code (a, b)} implies that {@code Objects.equal(function.apply(a),
       *       function.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this function does not accept null
       *     arguments
       */
      @ParametricNullness
      T apply(@ParametricNullness F input);
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/FilteredMultimapTest.java

    public class FilteredMultimapTest extends TestCase {
    
      private static final Predicate<Entry<String, Integer>> ENTRY_PREDICATE =
          new Predicate<Entry<String, Integer>>() {
            @Override
            public boolean apply(Entry<String, Integer> entry) {
              return !"badkey".equals(entry.getKey()) && !((Integer) 55556).equals(entry.getValue());
            }
          };
    
      protected Multimap<String, Integer> create() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        }
    
        @Override
        public O apply(I input) {
          applyCount++;
          return delegate.apply(input);
        }
    
        void verifyCallCount(int expected) {
          assertThat(applyCount).isEqualTo(expected);
        }
      }
    
      private static <X extends Throwable, V> Function<X, V> unexpectedFunction() {
        return new Function<X, V>() {
          @Override
          public V apply(X t) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         */
        fun cookieJar(cookieJar: CookieJar) =
          apply {
            this.cookieJar = cookieJar
          }
    
        /** Sets the response cache to be used to read and write cached responses. */
        fun cache(cache: Cache?) =
          apply {
            this.cache = cache
          }
    
        internal fun taskRunner(taskRunner: TaskRunner) =
          apply {
            this.taskRunner = taskRunner
          }
    
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleBuildDocumentationPlugin.java

            project.apply(target -> target.plugin(GradleReleaseNotesPlugin.class));
            project.apply(target -> target.plugin(GradleJavadocsPlugin.class));
            project.apply(target -> target.plugin(GradleKotlinDslReferencePlugin.class));
            project.apply(target -> target.plugin(GradleDslReferencePlugin.class));
            project.apply(target -> target.plugin(GradleUserManualPlugin.class));
    
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Apr 17 20:04:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt

        }
    
        fun allEnabledCipherSuites() =
          apply {
            require(tls) { "no cipher suites for cleartext connections" }
            this.cipherSuites = null
          }
    
        fun cipherSuites(vararg cipherSuites: CipherSuite): Builder =
          apply {
            require(tls) { "no cipher suites for cleartext connections" }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top