Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 122 for join (0.31 sec)

  1. android/guava/src/com/google/common/hash/Hashing.java

        if (bits == 32) {
          return Murmur3_32HashFunction.GOOD_FAST_HASH_32;
        }
        if (bits <= 128) {
          return Murmur3_128HashFunction.GOOD_FAST_HASH_128;
        }
    
        // Otherwise, join together some 128-bit murmur3s
        int hashFunctionsNeeded = (bits + 127) / 128;
        HashFunction[] hashFunctions = new HashFunction[hashFunctionsNeeded];
        hashFunctions[0] = Murmur3_128HashFunction.GOOD_FAST_HASH_128;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        TimedWaiterThread waiter = new TimedWaiterThread(future, Long.MAX_VALUE, SECONDS);
        waiter.start();
        waiter.awaitWaiting();
    
        future.set(1);
        waiter.join();
      }
    
      @J2ktIncompatible // TODO(b/324550390): Enable
      public void testSetNull() throws Exception {
        future.set(null);
        assertSuccessful(future, null);
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/UrlEscapers.java

       * considered by the specification to be separators between "path segments." This implies that, if
       * you wish for your path to contain slashes, you must escape each segment separately and then
       * join them.
       *
       * <p>When escaping a String, the following rules apply:
       *
       * <ul>
       *   <li>The alphanumeric characters "a" through "z", "A" through "Z" and "0" through "9" remain
       *       the same.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:04:33 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

      // clean up these threads.
      @SuppressWarnings("deprecation")
      @Override
      public void tearDown() throws Exception {
        stop();
        join();
    
        if (uncaughtThrowable != null) {
          throw (AssertionFailedError)
              new AssertionFailedError("Uncaught throwable in " + getName())
                  .initCause(uncaughtThrowable);
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/InterruptibleTaskTest.java

            .isEqualTo("I bet you didn't think Thread.interrupt could throw");
        // We need to wait for the runner to exit.  It used to be that the runner would get stuck in the
        // busy loop when interrupt threw.
        runner.join(TimeUnit.SECONDS.toMillis(10));
      }
    
      static final class BrokenChannel extends AbstractInterruptibleChannel {
        @Override
        protected void implCloseChannel() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        void waitUntilHoldingLock() throws InterruptedException {
          locked.await(1, TimeUnit.MINUTES);
        }
    
        void releaseLockAndFinish() throws InterruptedException {
          finishLatch.countDown();
          this.join(10000);
          assertFalse(this.isAlive());
        }
      }
    
      public void testReentrantReadWriteLock_implDoesNotExposeShadowedLocks() {
        assertEquals(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/SuppliersTest.java

                  assertSame(Boolean.TRUE, memoizedSupplier.get());
                }
              };
        }
        for (Thread t : threads) {
          t.start();
        }
        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/SuppliersTest.java

                  assertSame(Boolean.TRUE, memoizedSupplier.get());
                }
              };
        }
        for (Thread t : threads) {
          t.start();
        }
        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Thread
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

                Lists.transform(
                    Lists.cartesianProduct(Collections.nCopies(power, haveSameHashes2)),
                    strs ->
                        new CountsHashCodeAndEquals(
                            String.join("", strs),
                            () -> counter.hashCode++,
                            () -> counter.equals++,
                            () -> counter.compareTo++)));
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ListenableFuture<?> future = executor.submit(incrementTask);
        assertTrue(future.isDone());
        assertListenerRunImmediately(future);
        assertEquals(1, threadLocalCount.get().intValue());
        otherThread.join(1000);
        assertEquals(Thread.State.TERMINATED, otherThread.getState());
        Throwable throwable = throwableFromOtherThread.get();
        assertNull(
            "Throwable from other thread: "
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 28.2K bytes
    - Viewed (3)
Back to top