Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 485 for dave (0.16 sec)

  1. android/guava-tests/test/com/google/common/collect/SetOperationsTest.java

        enemies.add("Dave");
        assertEquals(1, goodFriends.size());
        assertEquals(2, immut.size());
        assertEquals(2, mut.size());
      }
    
      public void testSymmetricDifference() {
        Set<String> friends = Sets.newHashSet("Tom", "Joe", "Dave");
        Set<String> enemies = Sets.newHashSet("Dick", "Harry", "Tom");
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/SetOperationsTest.java

        enemies.add("Dave");
        assertEquals(1, goodFriends.size());
        assertEquals(2, immut.size());
        assertEquals(2, mut.size());
      }
    
      public void testSymmetricDifference() {
        Set<String> friends = Sets.newHashSet("Tom", "Joe", "Dave");
        Set<String> enemies = Sets.newHashSet("Dick", "Harry", "Tom");
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

          @Override
          public Class<?> loadClass(String name) throws ClassNotFoundException {
            if (blocklist.contains(name)) {
              throw new ClassNotFoundException("I'm sorry Dave, I'm afraid I can't do that.");
            }
            if (name.startsWith(concurrentPackage)) {
              Class<?> c = findLoadedClass(name);
              if (c == null) {
                return super.findClass(name);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/AggregateFutureStateFallbackAtomicHelperTest.java

          @Override
          public Class<?> loadClass(String name) throws ClassNotFoundException {
            if (blocklist.contains(name)) {
              throw new ClassNotFoundException("I'm sorry Dave, I'm afraid I can't do that.");
            }
            if (name.startsWith(concurrentPackage)) {
              Class<?> c = findLoadedClass(name);
              if (c == null) {
                return super.findClass(name);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableMap.java

      private final transient int size;
    
      /*
       * We have some considerable complexity in these create methods because of
       * Builder.buildKeepingLast(). The same Builder might be called with buildKeepingLast() and then
       * buildOrThrow(), or vice versa. So in particular, if we modify alternatingKeysAndValues to
       * eliminate duplicate keys (for buildKeepingLast()) then we have to ensure that a later call to
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 15 22:32:14 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

        assertThat(keySet).containsExactly(1, 3, 6, 8);
    
        // get fails to save 1, put saves 3
        cache.asMap().put(3, -3);
        getAll(cache, asList(1));
        CacheTesting.drainRecencyQueues(cache);
        ticker.advance(1, MILLISECONDS);
        assertThat(keySet).containsExactly(6, 8, 3);
    
        // get(K, Callable) fails to save 8, replace saves 6
        cache.asMap().replace(6, -6);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Aug 05 17:21:46 GMT 2022
    - 18.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

       * out.
       */
      long timeoutMillis() {
        return SHORT_DELAY_MS / 4;
      }
    
      /** Returns a new Date instance representing a time delayMillis milliseconds in the future. */
      Date delayedDate(long delayMillis) {
        return new Date(System.currentTimeMillis() + delayMillis);
      }
    
      /** The first exception encountered if any threadAssertXXX method fails. */
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

                (workerRunningState == IDLE || workerRunningState == QUEUING)
                    && queue.removeLastOccurrence(submittedTask);
            // If the delegate is directExecutor(), the submitted runnable could have thrown a REE. But
            // that's handled by the log check that catches RuntimeExceptions in the queue worker.
            if (!(t instanceof RejectedExecutionException) || removed) {
              throw t;
            }
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

     * permits being adjusted to ensure that the configured rate is maintained.
     *
     * <p>It is possible to configure a {@code RateLimiter} to have a warmup period during which time
     * the permits issued each second steadily increases until it hits the stable rate.
     *
     * <p>As an example, imagine that we have a list of tasks to execute, but we don't want to submit
     * more than 2 per second:
     *
     * <pre>{@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

      @SuppressWarnings("Immutable")
      private final int[] array;
    
      /*
       * TODO(kevinb): evaluate the trade-offs of going bimorphic to save these two fields from most
       * instances. Note that the instances that would get smaller are the right set to care about
       * optimizing, because the rest have the option of calling `trimmed`.
       */
    
      private final transient int start; // it happens that we only serialize instances where this is 0
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top