Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 739 for apple (0.03 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.internal.TlsUtil
    
    class DevServer {
      val handshakeCertificates = TlsUtil.localhost()
    
      val server =
        MockWebServer().apply {
          useHttps(handshakeCertificates.sslSocketFactory(), false)
    
          enqueue(
            MockResponse()
              .setResponseCode(HTTP_MOVED_TEMP)
              .setHeader("Location", "https://www.google.com/robots.txt"),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java

        new ForwardingWrapperTester()
            .testForwarding(
                ListMultimap.class,
                new Function<ListMultimap, ListMultimap<?, ?>>() {
                  @Override
                  public ListMultimap<?, ?> apply(ListMultimap delegate) {
                    return wrap((ListMultimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ForwardingSetMultimapTest.java

        new ForwardingWrapperTester()
            .testForwarding(
                SetMultimap.class,
                new Function<SetMultimap, SetMultimap<?, ?>>() {
                  @Override
                  public SetMultimap<?, ?> apply(SetMultimap delegate) {
                    return wrap((SetMultimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

            return this;
        }
    
        /**
         * Applies another function to this Ansi instance.
         *
         * @param fun the function to apply
         * @return this Ansi instance
         * @since 2.2
         */
        public Ansi apply(Consumer fun) {
            fun.apply(this);
            return this;
        }
    
        /**
         * Uses the {@link org.jline.jansi.AnsiRenderer}
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. mockwebserver-junit4/src/test/java/mockwebserver3/junit4/MockWebServerRuleTest.kt

    import org.junit.runners.model.Statement
    
    class MockWebServerRuleTest {
      @Test fun statementStartsAndStops() {
        val rule = MockWebServerRule()
        val called = AtomicBoolean()
        val statement: Statement =
          rule.apply(
            object : Statement() {
              override fun evaluate() {
                called.set(true)
                rule.server.url("/").toUrl().openConnection().connect()
              }
            },
            Description.EMPTY,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ForwardingListIteratorTest.java

        new ForwardingWrapperTester()
            .testForwarding(
                ListIterator.class,
                new Function<ListIterator, ListIterator<?>>() {
                  @Override
                  public ListIterator<?> apply(ListIterator delegate) {
                    return wrap((ListIterator<?>) delegate);
                  }
                });
      }
    
      private static <T> ListIterator<T> wrap(final ListIterator<T> delegate) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Equivalence.java

       * non-null objects {@code x} and {@code y}, {@code equivalence.onResultOf(function).equivalent(a,
       * b)} is true if and only if {@code equivalence.equivalent(function.apply(a), function.apply(b))}
       * is true.
       *
       * <p>For example:
       *
       * <pre>{@code
       * Equivalence<Person> SAME_AGE = Equivalence.equals().onResultOf(GET_PERSON_AGE);
       * }</pre>
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java

      private static final Predicate<Entry<String, Integer>> PREDICATE =
          new Predicate<Entry<String, Integer>>() {
            @Override
            public boolean apply(Entry<String, Integer> entry) {
              return !"badkey".equals(entry.getKey()) && 55556 != entry.getValue();
            }
          };
    
      public MultimapsFilterEntriesAsMapTest() {
        super(true, true, false);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingSortedSetMultimapTest.java

            .testForwarding(
                SortedSetMultimap.class,
                new Function<SortedSetMultimap, SortedSetMultimap<?, ?>>() {
                  @Override
                  public SortedSetMultimap<?, ?> apply(SortedSetMultimap delegate) {
                    return wrap((SortedSetMultimap<?, ?>) delegate);
                  }
                });
      }
    
      public void testEquals() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Headers.kt

        /**
         * Add a header line without any validation. Only appropriate for headers from the remote peer
         * or cache.
         */
        internal fun addLenient(line: String) =
          apply {
            val index = line.indexOf(':', 1)
            when {
              index != -1 -> {
                addLenient(line.substring(0, index), line.substring(index + 1))
              }
              line[0] == ':' -> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top