Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 731 for collection (0.41 sec)

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

        }
    
        @Override
        public boolean removeAll(final Collection<?> collection) {
          return removeIf(collection::contains);
        }
    
        @Override
        public boolean retainAll(final Collection<?> collection) {
          return removeIf(element -> !collection.contains(element));
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Collections2.java

        StringBuilder sb = newStringBuilderForCollection(collection.size()).append('[');
        boolean first = true;
        for (Object o : collection) {
          if (!first) {
            sb.append(", ");
          }
          first = false;
          if (o == collection) {
            sb.append("(this Collection)");
          } else {
            sb.append(o);
          }
        }
        return sb.append(']').toString();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        return Collections.unmodifiableCollection(collection);
      }
    
      @Override
      public void clear() {
        // Clear each collection, to make previously returned collections empty.
        for (Collection<V> collection : map.values()) {
          collection.clear();
        }
        map.clear();
        totalSize = 0;
      }
    
      // Views
    
      /**
       * {@inheritDoc}
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 46.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractMapBasedMultimap.java

        return Collections.unmodifiableCollection(collection);
      }
    
      @Override
      public void clear() {
        // Clear each collection, to make previously returned collections empty.
        for (Collection<V> collection : map.values()) {
          collection.clear();
        }
        map.clear();
        totalSize = 0;
      }
    
      // Views
    
      /**
       * {@inheritDoc}
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 48K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterables.java

       */
      public static boolean elementsEqual(Iterable<?> iterable1, Iterable<?> iterable2) {
        if (iterable1 instanceof Collection && iterable2 instanceof Collection) {
          Collection<?> collection1 = (Collection<?>) iterable1;
          Collection<?> collection2 = (Collection<?>) iterable2;
          if (collection1.size() != collection2.size()) {
            return false;
          }
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  6. 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)
  7. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Multimap.java

       */
      Collection<V> values();
    
      /**
       * Returns a view collection of all key-value pairs contained in this multimap, as {@link Entry}
       * instances.
       *
       * <p>Changes to the returned collection or the entries it contains will update the underlying
       * multimap, and vice versa. However, <i>adding</i> to the returned collection is not possible.
       */
    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)
  9. maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar

    codehaus.plexus.PlexusContainer, String); public boolean add(Object); public void add(int, Object); public boolean addAll(java.util.Collection); public boolean addAll(int, java.util.Collection); public void clear(); public boolean remove(Object); public Object remove(int); public boolean removeAll(java.util.Collection); public boolean retainAll(java.util.Collection); public Object set(int, Object); protected final java.util.List checkedGetList() throws org.codehaus.plexus.component.repository.ex...
    Archive
    - Registered: Sun Mar 31 03:35:09 GMT 2024
    - Last Modified: Tue Oct 16 20:15:40 GMT 2007
    - 15.6K bytes
    - Viewed (0)
  10. maven-core/src/test/resources/apiv4-repo/org/codehaus/plexus/plexus-active-collections/1.0-beta-1/plexus-active-collections-1.0-beta-1.jar

    codehaus.plexus.PlexusContainer, String); public boolean add(Object); public void add(int, Object); public boolean addAll(java.util.Collection); public boolean addAll(int, java.util.Collection); public void clear(); public boolean remove(Object); public Object remove(int); public boolean removeAll(java.util.Collection); public boolean retainAll(java.util.Collection); public Object set(int, Object); protected final java.util.List checkedGetList() throws org.codehaus.plexus.component.repository.ex...
    Archive
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sun Oct 02 08:41:25 GMT 2022
    - 15.6K bytes
    - Viewed (0)
Back to top