Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,325 for collection (0.24 sec)

  1. android/guava/src/com/google/common/collect/Sets.java

        checkNotNull(collection);
        return (collection instanceof EnumSet)
            ? EnumSet.complementOf((EnumSet<E>) collection)
            : makeComplementByHand(collection, type);
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      private static <E extends Enum<E>> EnumSet<E> makeComplementByHand(
          Collection<E> collection, Class<E> type) {
        EnumSet<E> result = EnumSet.allOf(type);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

        @Override
        public Entry<K, Collection<V>>[] createArray(int length) {
          return (Entry<K, Collection<V>>[]) new Entry<?, ?>[length];
        }
    
        @Override
        public Iterable<Entry<K, Collection<V>>> order(List<Entry<K, Collection<V>>> insertionOrder) {
          Map<K, Collection<V>> map = new HashMap<>();
          List<Entry<K, V>> builder = new ArrayList<>();
          for (Entry<K, Collection<V>> entry : insertionOrder) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ObjectArrays.java

       * elements than the collection), the element in the array immediately following the end of the
       * collection is set to {@code null}. This is useful in determining the length of the collection
       * <i>only</i> if the caller knows that the collection does not contain any null elements.
       *
       * <p>This method returns the elements in the order they are returned by the collection's
       * iterator.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 12 15:59:22 GMT 2023
    - 9K bytes
    - Viewed (0)
  4. 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)
  5. guava/src/com/google/common/collect/AbstractListMultimap.java

      }
    
      @Override
      Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
        return wrapList(key, (List<V>) collection, null);
      }
    
      // Following Javadoc copied from ListMultimap.
    
      /**
       * {@inheritDoc}
       *
       * <p>Because the values for a given key may have duplicates and follow the insertion ordering,
       * this method returns a {@link List}, instead of the {@link Collection} specified in the {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractListMultimap.java

      }
    
      @Override
      Collection<V> wrapCollection(@ParametricNullness K key, Collection<V> collection) {
        return wrapList(key, (List<V>) collection, null);
      }
    
      // Following Javadoc copied from ListMultimap.
    
      /**
       * {@inheritDoc}
       *
       * <p>Because the values for a given key may have duplicates and follow the insertion ordering,
       * this method returns a {@link List}, instead of the {@link Collection} specified in the {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 21:08:00 GMT 2021
    - 4.4K bytes
    - Viewed (0)
  7. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/VersionsMetadataGenerator.java

                }
            }
        }
    
        @Override
        public Collection<? extends Metadata> prepare(Collection<? extends Artifact> artifacts) {
            return Collections.emptyList();
        }
    
        @Override
        public Artifact transformArtifact(Artifact artifact) {
            return artifact;
        }
    
        @Override
        public Collection<? extends Metadata> finish(Collection<? extends Artifact> artifacts) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java

     * collection instance can only be one size at once.
     *
     * @author George van den Driessche
     */
    @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package?
    @GwtCompatible
    public enum CollectionSize implements Feature<Collection>, Comparable<CollectionSize> {
      /** Test an empty collection. */
      ZERO(0),
      /** Test a one-element collection. */
      ONE(1),
      /** Test a three-element collection. */
      SEVERAL(3),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/SetMultimapAsMapTester.java

        resetContainer(
            Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3()));
        Set<Entry<K, Collection<V>>> expected = Sets.newHashSet();
        expected.add(Helpers.mapEntry(k0(), (Collection<V>) Sets.newHashSet(v0(), v3())));
        expected.add(Helpers.mapEntry(k1(), (Collection<V>) Sets.newHashSet(v0())));
        new EqualsTester().addEqualityGroup(expected, multimap().asMap().entrySet()).testEquals();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/google/ListMultimapAsMapTester.java

        resetContainer(
            Helpers.mapEntry(k0(), v0()), Helpers.mapEntry(k1(), v0()), Helpers.mapEntry(k0(), v3()));
        Set<Entry<K, Collection<V>>> expected = Sets.newHashSet();
        expected.add(Helpers.mapEntry(k0(), (Collection<V>) Lists.newArrayList(v0(), v3())));
        expected.add(Helpers.mapEntry(k1(), (Collection<V>) Lists.newArrayList(v0())));
        new EqualsTester().addEqualityGroup(expected, multimap().asMap().entrySet()).testEquals();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.9K bytes
    - Viewed (0)
Back to top