Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 215 for Schick (0.14 sec)

  1. guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        // Later attempts to set the future should return false.
        assertFalse(future.set(23));
        assertFalse(future.setException(new Exception("bar")));
        assertFalse(future.setFuture(SettableFuture.<Integer>create()));
        // Check that the future has been set properly.
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
        assertEquals(42, (int) future.get());
      }
    
      public void testSetException() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.3K bytes
    - Viewed (1)
  2. android/guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java

        // Later attempts to set the future should return false.
        assertFalse(future.set(23));
        assertFalse(future.setException(new Exception("bar")));
        assertFalse(future.setFuture(SettableFuture.<Integer>create()));
        // Check that the future has been set properly.
        assertTrue(future.isDone());
        assertFalse(future.isCancelled());
        assertEquals(42, (int) future.get());
      }
    
      public void testSetException() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        assertEquals(0, totalCalls.get());
        fakePool.runAll();
        assertEquals(2, totalCalls.get());
        // Queue is empty so no runner should be scheduled.
        assertFalse(fakePool.hasNext());
    
        // Check that execute can be safely repeated
        e.execute(intCounter);
        e.execute(intCounter);
        e.execute(intCounter);
        // No change yet.
        assertEquals(2, totalCalls.get());
        fakePool.runAll();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractBiMap.java

          @ParametricNullness K key,
          boolean containedKey,
          @CheckForNull V oldValue,
          @ParametricNullness V newValue) {
        if (containedKey) {
          // The cast is safe because of the containedKey check.
          removeFromInverseMap(uncheckedCastNullableTToT(oldValue));
        }
        inverse.delegate.put(newValue, key);
      }
    
      @CanIgnoreReturnValue
      @Override
      @CheckForNull
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 14.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

      @GwtIncompatible // threads
      public void testOverflowTimeout() throws Exception {
        // First, sanity check that naive multiplication would really overflow to a negative number:
        long nanosPerSecond = NANOSECONDS.convert(1, SECONDS);
        assertThat(nanosPerSecond * Long.MAX_VALUE).isLessThan(0L);
    
        // Check that we wait long enough anyway (presumably as long as MAX_VALUE nanos):
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        return true;
      }
    
      /**
       * Checks all the properties that should always hold of a map. Also calls {@link
       * #assertMoreInvariants} to check invariants that are peculiar to specific implementations.
       *
       * @see #assertMoreInvariants
       * @param map the map to check.
       */
      protected final void assertInvariants(Map<K, V> map) {
        Set<K> keySet = map.keySet();
        Collection<V> valueCollection = map.values();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (2)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

                  OverflowAvoidingLockSupport.parkNanos(this, remainingNanos);
                  // Check interruption first, if we woke up due to interruption we need to honor that.
                  if (Thread.interrupted()) {
                    removeWaiter(node);
                    throw new InterruptedException();
                  }
    
                  // Otherwise re-read and check doneness. If we loop then it must have been a spurious
                  // wakeup
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

       * array nor its contents can be null, but it is not useful to force the use of {@code
       * requireNonNull} or the like just to assert that.
       *
       * <p>{@code EqualsTester} will always check that every object it is given returns false from
       * {@code equals(null)}, so it is neither useful nor allowed to include a null value in any
       * equality group.
       */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

        // NPE on null listener, so we propagate that contract up into the add method as well.
        checkNotNull(runnable, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
    
        // Lock while we check state. We must maintain the lock while adding the new pair so that
        // another thread can't run the list out from under us. We only add to the list if we have not
        // yet started execution.
        synchronized (this) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       scalability or other performance factors (see the separate "jtreg" tests for a set intended
     *       to check these for the most central aspects of functionality.) So, most tests use the
     *       smallest sensible numbers of threads, collection sizes, etc needed to check basic
     *       conformance.
     *   <li>The test classes currently do not declare inclusion in any particular package to simplify
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
Back to top