Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,324 for collection (0.34 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-testlib/src/com/google/common/collect/testing/features/CollectionFeature.java

      /**
       * For documenting collections that support no optional features, such as {@link
       * java.util.Collections#emptySet}
       */
      NONE;
    
      private final Set<Feature<? super Collection>> implied;
    
      CollectionFeature(Feature<? super Collection>... implied) {
        this.implied = Helpers.copyToSet(implied);
      }
    
      @Override
      public Set<Feature<? super Collection>> getImpliedFeatures() {
        return implied;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. 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)
  7. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

          implements TestMapGenerator<String, Collection<Integer>> {
    
        @Override
        public SampleElements<Entry<String, Collection<Integer>>> samples() {
          return new SampleElements<>(
              mapEntry("one", collectionOf(10000)),
              mapEntry("two", collectionOf(-2000)),
              mapEntry("three", collectionOf(300)),
              mapEntry("four", collectionOf(-40)),
              mapEntry("five", collectionOf(5)));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. maven-core/src/main/java/org/apache/maven/lifecycle/internal/DependencyContext.java

        private final Collection<String> scopesToCollectForCurrentProject;
    
        private final Collection<String> scopesToResolveForCurrentProject;
    
        private final Collection<String> scopesToCollectForAggregatedProjects;
    
        private final Collection<String> scopesToResolveForAggregatedProjects;
    
        private volatile Collection<?> lastDependencyArtifacts = Collections.emptyList();
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Jan 10 12:55:54 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

          return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection);
        } else {
          return Collections.unmodifiableSortedSet((SortedSet<E>) collection);
        }
      }
    
      @Override
      Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
        if (collection instanceof NavigableSet) {
          return new WrappedNavigableSet(key, (NavigableSet<V>) collection, null);
        } else {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractSortedSetMultimap.java

          return Sets.unmodifiableNavigableSet((NavigableSet<E>) collection);
        } else {
          return Collections.unmodifiableSortedSet((SortedSet<E>) collection);
        }
      }
    
      @Override
      Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
        if (collection instanceof NavigableSet) {
          return new WrappedNavigableSet(key, (NavigableSet<V>) collection, null);
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 5.4K bytes
    - Viewed (0)
Back to top