Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 359 for Chen (0.18 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

        expectReturnsTrue(disjoint);
        expectContents();
      }
    
      // retainAll(null)
    
      /*
       * AbstractCollection fails the retainAll(null) test when the subject
       * collection is empty, but we'd still like to test retainAll(null) when we
       * can. We split the test into empty and non-empty cases. This allows us to
       * suppress only the former.
       */
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

       *       underlying contents.
       *   <li>All methods that return objects that can indirectly mutate the collection throw
       *       UnsupportedOperationException when those mutators are called.
       * </ol>
       *
       * @param collection the presumed-immutable collection
       * @param sampleElement an element of the same type as that contained by {@code collection}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multisets.java

       * by {@code unfiltered} are supported by the returned multiset. When given an element that
       * doesn't satisfy the predicate, the multiset's {@code add()} and {@code addAll()} methods throw
       * an {@link IllegalArgumentException}. When methods such as {@code removeAll()} and {@code
       * clear()} are called on the filtered multiset, only elements that satisfy the filter will be
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

            .inOrder();
      }
    
      public void testCopyOf_array_empty() {
        /*
         * We don't guarantee the same-as property, so we aren't obligated to test it. However, it's
         * useful in testing - when two things are the same then one can't have bugs the other doesn't.
         */
        assertThat(ImmutableLongArray.copyOf(new long[0])).isSameInstanceAs(ImmutableLongArray.of());
      }
    
      public void testCopyOf_array_nonempty() {
    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)
  5. guava-tests/test/com/google/common/eventbus/EventBusTest.java

            "Shouldn't catch any more events when unregistered.", expectedEvents, catcher1.getEvents());
        assertEquals("Two correct events should be delivered.", expectedEvents, catcher2.getEvents());
    
        assertThrows(IllegalArgumentException.class, () -> bus.unregister(catcher1));
    
        bus.unregister(catcher2);
        bus.post(EVENT);
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/eventbus/EventBusTest.java

            "Shouldn't catch any more events when unregistered.", expectedEvents, catcher1.getEvents());
        assertEquals("Two correct events should be delivered.", expectedEvents, catcher2.getEvents());
    
        assertThrows(IllegalArgumentException.class, () -> bus.unregister(catcher1));
    
        bus.unregister(catcher2);
        bus.post(EVENT);
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimap.java

     * So, using the multimap shown above as an example, the {@link #size} is {@code 3}, not {@code 2},
     * and the {@link #values} collection is {@code [1, 2, 3]}, not {@code [[1, 2], [3]]}. For those
     * times when the first style is more useful, use the multimap's {@link #asMap} view (or create a
     * {@code Map<K, Collection<V>>} in the first place).
     *
     * <h3>Example</h3>
     *
     * <p>The following code:
     *
     * <pre>{@code
    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)
  8. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       * Returns a new, empty builder for {@link ImmutableIntArray} instances, sized to hold up to
       * {@code initialCapacity} values without resizing. The returned builder is not thread-safe.
       *
       * <p><b>Performance note:</b> When feasible, {@code initialCapacity} should be the exact number
       * of values that will be added, if that knowledge is readily available. It is better to guess a
    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)
  9. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       * Returns a new, empty builder for {@link ImmutableDoubleArray} instances, sized to hold up to
       * {@code initialCapacity} values without resizing. The returned builder is not thread-safe.
       *
       * <p><b>Performance note:</b> When feasible, {@code initialCapacity} should be the exact number
       * of values that will be added, if that knowledge is readily available. It is better to guess a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableMap.java

       * 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
       * buildOrThrow() will still throw as if the duplicates had not been eliminated. And the exception
    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)
Back to top