Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,727 for Collection (5.58 sec)

  1. guava/src/com/google/common/collect/FilteredEntryMultimap.java

          Entry<K, Collection<V>> entry = entryIterator.next();
          K key = entry.getKey();
          Collection<V> collection = filterCollection(entry.getValue(), new ValuePredicate(key));
          if (!collection.isEmpty() && predicate.apply(Maps.immutableEntry(key, collection))) {
            if (collection.size() == entry.getValue().size()) {
              entryIterator.remove();
            } else {
              collection.clear();
            }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/MultimapGetTester.java

    public class MultimapGetTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> {
      public void testGetEmpty() {
        Collection<V> result = multimap().get(k3());
        assertEmpty(result);
        assertEquals(0, result.size());
      }
    
      @CollectionSize.Require(absent = ZERO)
      public void testGetNonEmpty() {
        Collection<V> result = multimap().get(k0());
        assertFalse(result.isEmpty());
        assertContentsAnyOrder(result, v0());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Nov 16 17:41:24 GMT 2022
    - 5.6K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

      public void testAddAll_supportedSomePresent() {
        assertTrue(
            "addAll(somePresent) should return true",
            collection.addAll(MinimalCollection.of(e3(), e0())));
        assertTrue("should contain " + e3(), collection.contains(e3()));
        assertTrue("should contain " + e0(), collection.contains(e0()));
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertEquals(Collections.singleton("a"), set);
      }
    
      public void testCopyOf_collection_oneElementRepeated() {
        Collection<String> c = MinimalCollection.of("a", "a", "a");
        Set<String> set = copyOf(c);
        assertEquals(Collections.singleton("a"), set);
      }
    
      public void testCopyOf_collection_general() {
        Collection<String> c = MinimalCollection.of("a", "b", "a");
        Set<String> set = copyOf(c);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        assertEquals(Collections.singleton("a"), set);
      }
    
      public void testCopyOf_collection_oneElementRepeated() {
        Collection<String> c = MinimalCollection.of("a", "a", "a");
        Set<String> set = copyOf(c);
        assertEquals(Collections.singleton("a"), set);
      }
    
      public void testCopyOf_collection_general() {
        Collection<String> c = MinimalCollection.of("a", "b", "a");
        Set<String> set = copyOf(c);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/package-info.java

     * limitations under the License.
     */
    
    /**
     * Collection interfaces and implementations, and other utilities for collections. This package is a
     * part of the open-source <a href="https://github.com/google/guava">Guava</a> library.
     *
     * <p>The classes in this package include:
     *
     * <h2>Immutable collections</h2>
     *
     * These are collections whose contents will never change. They also offer a few additional
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jul 06 16:29:45 GMT 2023
    - 5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ForwardingCollection.java

      }
    
      @Override
      public boolean containsAll(Collection<?> collection) {
        return delegate().containsAll(collection);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean addAll(Collection<? extends E> collection) {
        return delegate().addAll(collection);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean retainAll(Collection<?> collection) {
        return delegate().retainAll(collection);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 29 19:42:21 GMT 2021
    - 8.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapRemoveEntryTester.java

          K key = entry.getKey();
          V value = entry.getValue();
          Collection<V> collection = multimap().get(key);
          assertNotNull(collection);
          Collection<V> expectedCollection = Helpers.copyToList(collection);
    
          multimap().remove(key, value);
          expectedCollection.remove(value);
    
          assertEqualIgnoringOrder(expectedCollection, collection);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 6.6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

    public class CollectionRetainAllTester<E> extends AbstractCollectionTester<E> {
    
      /** A collection of elements to retain, along with a description for use in failure messages. */
      private class Target {
        private final Collection<E> toRetain;
        private final String description;
    
        private Target(Collection<E> toRetain, String description) {
          this.toRetain = toRetain;
          this.description = description;
        }
    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)
  10. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

       * </ol>
       *
       * @param collection the presumed-immutable collection
       * @param sampleElement an element of the same type as that contained by {@code collection}.
       *     {@code collection} may or may not have {@code sampleElement} as a member.
       */
      public static <E extends @Nullable Object> void assertCollectionIsUnmodifiable(
          Collection<E> collection, E sampleElement) {
        Collection<E> siblingCollection = new ArrayList<>();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top