Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for Chow (0.18 sec)

  1. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        try {
          ImmutableDoubleArray.builder(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * If there's a bug in builder growth, we wouldn't know how to expose it. So, brute force the hell
       * out of it for a while and see what happens.
       */
      public void testBuilder_bruteForce() {
        for (int i = 0; i < reduceIterationsIfGwt(100); i++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 15:23:21 GMT 2023
    - 20K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

        try {
          ImmutableLongArray.builder(-1);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      /**
       * If there's a bug in builder growth, we wouldn't know how to expose it. So, brute force the hell
       * out of it for a while and see what happens.
       */
      public void testBuilder_bruteForce() {
        for (int i = 0; i < reduceIterationsIfGwt(100); i++) {
    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)
  3. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * subsequent requests being smoothly limited at the stable rate of {@code permitsPerSecond}.
       *
       * @param permitsPerSecond the rate of the returned {@code RateLimiter}, measured in how many
       *     permits become available per second
       * @throws IllegalArgumentException if {@code permitsPerSecond} is negative or zero
       */
      // TODO(user): "This is equivalent to
    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)
  4. android/guava/src/com/google/common/collect/Multimap.java

     *
     * ... or as a single "flattened" collection of key-value pairs:
     *
     * <ul>
     *   <li>a → 1
     *   <li>a → 2
     *   <li>b → 3
     * </ul>
     *
     * <p><b>Important:</b> although the first interpretation resembles how most multimaps are
     * <i>implemented</i>, the design of the {@code Multimap} API is based on the <i>second</i> form.
     * So, using the multimap shown above as an example, the {@link #size} is {@code 3}, not {@code 2},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 15.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       * values are null. This method may update {@code alternatingKeysAndValues} if there are duplicate
       * keys. If so, the return value will indicate how many entries are still valid, and will also
       * include a {@link Builder.DuplicateKey} in case duplicate keys are not allowed now or will not
       * be allowed on a later {@link Builder#buildOrThrow()} call.
       *
    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/src/com/google/common/util/concurrent/Monitor.java

     *   }
     * } else {
     *   // do other things since the monitor was not available
     * }
     * }</pre>
     *
     * <h2>Comparison with {@code synchronized} and {@code ReentrantLock}</h2>
     *
     * <p>The following examples show a simple threadsafe holder expressed using {@code synchronized},
     * {@link ReentrantLock}, and {@code Monitor}.
     *
     * <h3>{@code synchronized}</h3>
     *
    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)
  7. guava/src/com/google/common/collect/DiscreteDomain.java

       *     minValue()}
       */
      @CheckForNull
      public abstract C previous(C value);
    
      /**
       * Returns a signed value indicating how many nested invocations of {@link #next} (if positive) or
       * {@link #previous} (if negative) are needed to reach {@code end} starting from {@code start}.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ListsImplTest.java

    /** Tests the package level *impl methods directly using various types of lists. */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class ListsImplTest extends TestCase {
    
      /** Describes how a list is modifiable */
      public enum Modifiability {
        NONE, // immutable lists
        BY_ELEMENT, // elements can change (set), but not structure
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java

    import java.util.concurrent.atomic.AtomicInteger;
    import junit.framework.TestCase;
    
    /**
     * Tests relating to cache expiration: make sure entries expire at the right times, make sure
     * expired entries don't show up, etc.
     *
     * @author mike nonemacher
     */
    @SuppressWarnings("deprecation") // tests of deprecated method
    public class CacheExpirationTest extends TestCase {
    
      private static final long EXPIRING_TIME = 1000;
    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)
  10. android/guava/src/com/google/common/collect/Comparators.java

       * 1] < [1, 2] < [2]}.
       *
       * <p>Note that {@code Collections.reverseOrder(lexicographical(comparator))} is not equivalent to
       * {@code lexicographical(Collections.reverseOrder(comparator))} (consider how each would order
       * {@code [1]} and {@code [1, 1]}).
       */
      // Note: 90% of the time we don't add type parameters or wildcards that serve only to "tweak" the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top