Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for applyTo (0.18 sec)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        }
    
        fun client(client: OkHttpClient) =
          apply {
            this.client = client
          }
    
        fun url(url: HttpUrl) =
          apply {
            this.url = url
          }
    
        fun includeIPv6(includeIPv6: Boolean) =
          apply {
            this.includeIPv6 = includeIPv6
          }
    
        fun post(post: Boolean) =
          apply {
            this.post = post
          }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

          assertTrue(MoreFiles.isDirectory().apply(symlinkToDir));
          assertFalse(MoreFiles.isRegularFile().apply(symlinkToDir));
    
          assertFalse(MoreFiles.isDirectory().apply(symlinkToFile));
          assertTrue(MoreFiles.isRegularFile().apply(symlinkToFile));
    
          assertFalse(MoreFiles.isDirectory(NOFOLLOW_LINKS).apply(symlinkToDir));
          assertFalse(MoreFiles.isRegularFile(NOFOLLOW_LINKS).apply(symlinkToFile));
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. 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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

              C filtered = filter(createUnfiltered(contents), EVEN);
              try {
                assertEquals(expectedResult, filtered.add(toAdd));
                assertTrue(EVEN.apply(toAdd));
              } catch (IllegalArgumentException e) {
                assertFalse(EVEN.apply(toAdd));
              }
            }
          }
        }
    
        public void testRemove() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IterablesTest.java

                  @Override
                  public boolean apply(String s) {
                    return s.equals("b") || s.equals("d") || s.equals("f");
                  }
                }));
        assertEquals(newArrayList("a", "c", "e"), list);
        assertFalse(
            removeIf(
                list,
                new Predicate<String>() {
                  @Override
                  public boolean apply(String s) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  6. android/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() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/FilteredEntryMultimap.java

        return predicate.apply(immutableEntry(key, value));
      }
    
      final class ValuePredicate implements Predicate<V> {
        @ParametricNullness private final K key;
    
        ValuePredicate(@ParametricNullness K key) {
          this.key = key;
        }
    
        @Override
        public boolean apply(@ParametricNullness V value) {
          return satisfies(key, value);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Streams.java

                  @Override
                  public boolean tryAdvance(Consumer<? super R> action) {
                    if (itrA.hasNext() && itrB.hasNext()) {
                      action.accept(function.apply(itrA.next(), itrB.next()));
                      return true;
                    }
                    return false;
                  }
                },
                isParallel)
            .onClose(streamA::close)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/FilteredKeyMultimap.java

      public boolean containsKey(@CheckForNull Object key) {
        if (unfiltered.containsKey(key)) {
          @SuppressWarnings("unchecked") // k is equal to a K, if not one itself
          K k = (K) key;
          return keyPredicate.apply(k);
        }
        return false;
      }
    
      @Override
      public Collection<V> removeAll(@CheckForNull Object key) {
        return containsKey(key) ? unfiltered.removeAll(key) : unmodifiableEmptyCollection();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

        return predicate.apply(immutableEntry(key, value));
      }
    
      final class ValuePredicate implements Predicate<V> {
        @ParametricNullness private final K key;
    
        ValuePredicate(@ParametricNullness K key) {
          this.key = key;
        }
    
        @Override
        public boolean apply(@ParametricNullness V value) {
          return satisfies(key, value);
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top