Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for 1013 (0.03 sec)

  1. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        }
    
        @Override
        public boolean removeAll(Collection<?> c) {
          if (c.isEmpty()) {
            return false;
          }
          int oldSize = size(); // calls refreshIfEmpty
    
          // Guava issue 1013: AbstractSet and most JDK set implementations are
          // susceptible to quadratic removeAll performance on lists;
          // use a slightly smarter implementation here
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Aug 12 15:51:57 UTC 2025
    - 48.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

         * is just more than the set's size.  We augment the test by
         * assuming that sets have fast contains() performance, and other
         * collections don't.  See
         * https://github.com/google/guava/issues/1013
         */
        if (collection instanceof Set && collection.size() > set.size()) {
          return Iterators.removeAll(set.iterator(), collection);
        } else {
          return removeAllImpl(set, collection.iterator());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt

          Route(
            factory.newAddress(uriHost = "1.2.3.4", uriPort = 1003),
            Proxy.NO_PROXY,
            InetSocketAddress(ipv4Address, 1003),
          ).toString(),
        ).isEqualTo("1.2.3.4:1003")
        assertThat(
          Route(
            factory.newAddress(uriHost = "example.com", uriPort = 1003),
            Proxy.NO_PROXY,
            InetSocketAddress(ipv4Address, 1003),
          ).toString(),
        ).isEqualTo("example.com at 1.2.3.4:1003")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/ws/WebSocketHttpTest.kt

        val clientReason = "unexpected Sec-WebSocket-Extensions in response header"
        serverListener.assertClosing(1010, clientReason)
        server.close(1010, "")
        clientListener.assertClosing(1010, "")
        clientListener.assertClosed(1010, "")
        serverListener.assertClosed(1010, clientReason)
        clientListener.assertExhausted()
        serverListener.assertExhausted()
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(Doubles.contains(EMPTY, 1.0)).isFalse();
        assertThat(Doubles.contains(ARRAY1, 2.0)).isFalse();
        assertThat(Doubles.contains(ARRAY234, 1.0)).isFalse();
        assertThat(Doubles.contains(new double[] {-1.0}, -1.0)).isTrue();
        assertThat(Doubles.contains(ARRAY234, 2.0)).isTrue();
        assertThat(Doubles.contains(ARRAY234, 3.0)).isTrue();
        assertThat(Doubles.contains(ARRAY234, 4.0)).isTrue();
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

     * `server_max_window_bits`. This harms our ability to support these parameters:
     *
     *  * If `client_max_window_bits` is less than 15, OkHttp must close the web socket with code 1010.
     *    Otherwise it would compress values in a way that servers could not decompress.
     *  * If `server_max_window_bits` is less than 15, OkHttp will waste memory on an oversized buffer.
     *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/RangeTest.java

        // separate above
        expected =
            assertThrows(
                IllegalArgumentException.class, () -> range.intersection(Range.closed(10, 12)));
        assertThat(expected).hasMessageThat().contains("connected");
      }
    
      public void testGap_overlapping() {
        Range<Integer> range = Range.closedOpen(3, 5);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/CollectSpliteratorsTest.java

      }
    
      public void testFlatMapToInt_nullStream() {
        SpliteratorTester.ofInt(
                () ->
                    CollectSpliterators.flatMapToInt(
                        Arrays.spliterator(new Integer[] {1, 0, 1, 2, 3}),
                        (Integer i) -> i == 0 ? null : IntStream.of(i).spliterator(),
                        Spliterator.SIZED | Spliterator.DISTINCT | Spliterator.NONNULL,
                        4))
            .expect(1, 1, 2, 3);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

            in 5..7 -> {
              data.writeByte('\n'.code) // 'data' on a line of its own.
            }
    
            in 8..9 -> {
              id = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
            }
    
            in 10..12 -> {
              id = null // 'id' on a line of its own.
            }
    
            in 13..14 -> {
              type = source.readUtf8LineStrict().takeIf { it.isNotEmpty() }
            }
    
            in 15..17 -> {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/math/PairedStatsAccumulator.java

        if (value > 0.0) {
          return value;
        } else {
          return Double.MIN_VALUE;
        }
      }
    
      private static double ensureInUnitRange(double value) {
        return Doubles.constrainToRange(value, -1.0, 1.0);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:36:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top