Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 180 for loom (0.15 sec)

  1. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

    
      public void testNoRaceConditions() throws Exception {
        final BloomFilter<Integer> bloomFilter =
            BloomFilter.create(Funnels.integerFunnel(), 15_000_000, 0.01);
    
        // This check has to be BEFORE the loop because the random insertions can
        // flip GOLDEN_PRESENT_KEY to true even if it wasn't explicitly inserted
        // (false positive).
        assertThat(bloomFilter.mightContain(GOLDEN_PRESENT_KEY)).isFalse();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Utf8.java

        int utf16Length = sequence.length();
        int utf8Length = utf16Length;
        int i = 0;
    
        // This loop optimizes for pure ASCII.
        while (i < utf16Length && sequence.charAt(i) < 0x80) {
          i++;
        }
    
        // This loop optimizes for chars less than 0x800.
        for (; i < utf16Length; i++) {
          char c = sequence.charAt(i);
          if (c < 0x800) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    `only, as it's asleep, I suppose it doesn't mind.'
    
      The table was a large one, but the three were all crowded
    together at one corner of it:  `No room!  No room!' they cried
    out when they saw Alice coming.  `There's PLENTY of room!' said
    Alice indignantly, and she sat down in a large arm-chair at one
    end of the table.
    
      `Have some wine,' the March Hare said in an encouraging tone.
    
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Throwables.java

       * </pre>
       *
       * @throws IllegalArgumentException if there is a loop in the causal chain
       */
      public static Throwable getRootCause(Throwable throwable) {
        // Keep a second pointer that slowly walks the causal chain. If the fast pointer ever catches
        // the slower pointer, then there's a loop.
        Throwable slowPointer = throwable;
        boolean advanceSlowPointer = false;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Throwables.java

       * </pre>
       *
       * @throws IllegalArgumentException if there is a loop in the causal chain
       */
      public static Throwable getRootCause(Throwable throwable) {
        // Keep a second pointer that slowly walks the causal chain. If the fast pointer ever catches
        // the slower pointer, then there's a loop.
        Throwable slowPointer = throwable;
        boolean advanceSlowPointer = false;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Mar 06 15:38:58 GMT 2024
    - 20.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

           * to test it.
           */
          return;
        }
    
        /*
         * Only under Windows (or hypothetically when running with some other non-POSIX, ACL-based
         * filesystem) does our prod code look up the username. Thus, this test doesn't necessarily test
         * anything interesting under most environments. Still, we can run it (except for Android, at
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/Utf8Test.java

      private static void testBytes(int numBytes, long expectedCount) {
        testBytes(numBytes, expectedCount, 0, -1);
      }
    
      /**
       * Helper to run the loop to test all the permutations for the number of bytes specified. This
       * overload is useful for debugging to get the loop to start at a certain character.
       *
       * @param numBytes the number of bytes in the byte array
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Monitor.java

     * same efficient signaling as we had to hand-code in the {@code ReentrantLock} version above.
     * Finally, the programmer no longer has to hand-code the wait loop, and therefore doesn't have to
     * remember to use {@code while} instead of {@code if}.
     *
     * <pre>{@code
     * public class SafeBox<V> {
     *   private V value;
     *   private final Monitor monitor = new Monitor();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/AndroidIncompatible.java

     *
     * <ul>
     *   <li>An annotation named just "Suppress" might someday be treated by a non-Android tool as a
     *       suppression. This would follow the precedent of many of our annotation processors, which
     *       look for any annotation named, e.g., "GwtIncompatible," regardless of package.
     *   <li>An annotation named just "Suppress" might suggest to users that the test is suppressed
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Jul 07 15:40:13 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  10. CONTRIBUTING.md

      - Improvements to Maven configuration.
    
    Guidelines for any code contributions:
    
      1. Any significant changes should be accompanied by tests. The project already
         has good test coverage, so look at some existing tests if you're unsure
         how to go about it.
      2. All contributions must be licensed Apache 2.0 and all files must have a
         copy of the boilerplate license comment (can be copied from an existing
         file).
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.7K bytes
    - Viewed (0)
Back to top