Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 533 for Ehat (0.28 sec)

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

          assertTrue(burst <= 1000);
          long afterBurst = measureTotalTimeMillis(limiter, oneSecWorthOfWork, new Random());
          // but work beyond that must take at least one second
          assertTrue(afterBurst >= 1000);
        }
      }
    
      /**
       * This neat test shows that no matter what weights we use in our requests, if we push X amount of
       * permits in a cool state, where X = rate * timeToCoolDown, and we have specified a
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Types.java

       * cannot implement that interface in source code in a way that will compile on both Java 7 and
       * Java 8. If we include the {@code getAnnotatedBounds()} method then its return type means it
       * won't compile on Java 7, while if we don't include the method then the compiler will complain
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        }
      }
    
      /*
       * Whenever an implementation uses `instanceof` on a parameter instance, the test has to know that
       * (so much for "black box") and try instances that both do and don't pass the check. The "don't"
       * half of that is more awkward to arrange...
       */
      private static <T> Iterable<T> iterable(final Collection<T> collection) {
        // return collection::iterator;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Joiner.java

       *       {@code MapJoiner} method that accepts entries as input, and receive output of the form
       *       {@code key1=A&key1=B&key2=C}.
       *   <li>To output a single entry for each key, pass {@code multimap.asMap()} to a {@code
       *       MapJoiner} method that accepts a map as input, and receive output of the form {@code
       *       key1=[A, B]&key2=C}.
       * </ul>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        }
      }
    
      /*
       * Whenever an implementation uses `instanceof` on a parameter instance, the test has to know that
       * (so much for "black box") and try instances that both do and don't pass the check. The "don't"
       * half of that is more awkward to arrange...
       */
      private static <T> Iterable<T> iterable(final Collection<T> collection) {
        // return collection::iterator;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

         * requires us to define extra classes -- unfortunate under Android.) *Then* we could consider
         * lying about the fields below on the grounds that we always initialize them just after the
         * constructor -- an example of the kind of lying that our hypothetical bytecode rewriter would
         * already have to deal with, thanks to DI frameworks that perform field and method injection,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

    import com.google.common.cache.TestingRemovalListeners.CountingRemovalListener;
    import java.util.List;
    import java.util.Set;
    import junit.framework.TestCase;
    
    /**
     * Tests relating to cache eviction: what does and doesn't count toward maximumSize, what happens
     * when maximumSize is reached, etc.
     *
     * @author mike nonemacher
     */
    public class CacheEvictionTest extends TestCase {
      static final int MAX_SIZE = 100;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 14.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/Monitor.java

      // could find them in the code review archives), but here are a few:
      //
      // 1. What about leaving/unlocking? Are you going to do
      //    guard.enter() paired with monitor.leave()? That might get
      //    confusing. It's nice for the finally block to look as close as
      //    possible to the thing right before the try. You could have
      //    guard.leave(), but that's a little odd as well because the
    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. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       *
       * <p><b>Note:</b> Despite what the method name suggests, if {@code elements} is an {@code
       * ImmutableSortedSet}, it may be returned instead of a copy.
       *
       * <p>This method is not type-safe, as it may be called on elements that are not mutually
       * comparable.
       *
       * <p>This method is safe to use even when {@code elements} is a synchronized or concurrent
       * collection that is currently being modified by another thread.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/LinkedListMultimap.java

      private transient Map<K, KeyList<K, V>> keyToKeyList;
      private transient int size;
    
      /*
       * Tracks modifications to keyToKeyList so that addition or removal of keys invalidates
       * preexisting iterators. This does *not* track simple additions and removals of values
       * that are not the first to be added or last to be removed for their key.
       */
      private transient int modCount;
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
Back to top