Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 55 for far (0.99 sec)

  1. android/guava/src/com/google/common/primitives/Ints.java

        //     imagine a line separating the first block from the second, we can proceed by exchanging
        //     the smaller of these blocks with the far end of the other one. That leaves us with a
        //     smaller version of the same problem.
        //     Say we are rotating abcdefgh by 5. We start with abcde|fgh. The smaller block is [fgh]:
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/CompactHashMap.java

     * amortized) constant time operations. Expected in the hashtable sense (depends on the hash
     * function doing a good job of distributing the elements to the buckets to a distribution not far
     * from uniform), and amortized since some operations can trigger a hash table resize.
     *
     * <p>Unlike {@code java.util.HashMap}, iteration is only proportional to the actual {@code size()},
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      private var sslSocketFactory: SSLSocketFactory? = null
      private var clientAuth = CLIENT_AUTH_NONE
    
      private var closed: Boolean = false
    
      /**
       * The number of HTTP requests received thus far by this server. This may exceed the number of
       * HTTP connections when connection reuse is in practice.
       */
      public val requestCount: Int
        get() = atomicRequestCount.get()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Converter.java

       * both use cases by using @PolyNull. (By contrast, we can't use @PolyNull for our superinterface
       * (`implements Function<@PolyNull A, @PolyNull B>`), at least as far as I know.)
       */
      public Iterable<B> convertAll(Iterable<? extends A> fromIterable) {
        checkNotNull(fromIterable, "fromIterable");
        return () ->
            new Iterator<B>() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 18 21:43:06 UTC 2025
    - 22.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/math/LongMathTest.java

          assertThrows(IllegalArgumentException.class, () -> LongMath.binomial(n, 0));
        }
      }
    
    
      @J2ktIncompatible // slow enough to cause flakiness
      @GwtIncompatible // far too slow
      public void testSqrtOfPerfectSquareAsDoubleIsPerfect() {
        // This takes just over a minute on my machine.
        for (long n = 0; n <= LongMath.FLOOR_SQRT_MAX_LONG; n++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IterablesTest.java

                  }
                });
    
        List<String> actual = newArrayList(result);
        List<String> expected = asList("1", "2", "null", "3");
        assertEquals(expected, actual);
      }
    
      // Far less exhaustive than the tests in IteratorsTest
      public void testCycle() {
        Iterable<String> cycle = Iterables.cycle("a", "b");
    
        int howManyChecked = 0;
        for (String string : cycle) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HpackTest.kt

          'a'.code,
          'r'.code,
          3,
          'f'.code,
          'o'.code,
          'o'.code,
        )
    
        // No more dynamic table updates should be emitted.
        hpackWriter!!.writeHeaders(listOf(Header("far", "boo")))
        assertBytes(0x40, 3, 'f'.code, 'a'.code, 'r'.code, 3, 'b'.code, 'o'.code, 'o'.code)
      }
    
      @Test
      fun noDynamicTableSizeUpdateWhenSizeIsEqual() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 38.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/ByteStreams.java

          int off = (int) expectedSize - remaining;
          int read = in.read(bytes, off, remaining);
          if (read == -1) {
            // end of stream before reading expectedSize bytes
            // just return the bytes read so far
            return Arrays.copyOf(bytes, off);
          }
          remaining -= read;
        }
    
        // bytes is now full
        int b = in.read();
        if (b == -1) {
          return bytes;
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IterablesTest.java

                  }
                });
    
        List<String> actual = newArrayList(result);
        List<String> expected = asList("1", "2", "null", "3");
        assertEquals(expected, actual);
      }
    
      // Far less exhaustive than the tests in IteratorsTest
      public void testCycle() {
        Iterable<String> cycle = Iterables.cycle("a", "b");
    
        int howManyChecked = 0;
        for (String string : cycle) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/CompactHashMap.java

     * amortized) constant time operations. Expected in the hashtable sense (depends on the hash
     * function doing a good job of distributing the elements to the buckets to a distribution not far
     * from uniform), and amortized since some operations can trigger a hash table resize.
     *
     * <p>Unlike {@code java.util.HashMap}, iteration is only proportional to the actual {@code size()},
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
Back to top