Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 223 for addAll (0.07 sec)

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

            UnsupportedOperationException.class, () -> getList().addAll(0, MinimalCollection.of(e0())));
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_supportedSomePresent() {
        assertTrue(
            "addAll(n, allPresent) should return true",
            getList().addAll(0, MinimalCollection.of(e0(), e3())));
        expectAdded(0, e0(), e3());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        oneValueAccumulatorByAddAllEmptyStats.addAll(Stats.of());
    
        twoValuesAccumulator = new StatsAccumulator();
        twoValuesAccumulator.addAll(TWO_VALUES);
    
        twoValuesAccumulatorByAddAllStats = new StatsAccumulator();
        twoValuesAccumulatorByAddAllStats.addAll(Stats.of(ONE_VALUE));
        twoValuesAccumulatorByAddAllStats.addAll(Stats.of(OTHER_ONE_VALUE));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java

      public void testAddAll_supportedNothing() {
        assertFalse("addAll(nothing) should return false", collection.addAll(emptyCollection()));
        expectUnchanged();
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      public void testAddAll_unsupportedNothing() {
        try {
          assertFalse(
              "addAll(nothing) should return false or throw", collection.addAll(emptyCollection()));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

        private <T> Collection<T> getExtensionComponents(Collection<MavenProject> projects, Class<T> role) {
            Collection<T> foundComponents = new LinkedHashSet<>();
            foundComponents.addAll(lookup.lookupList(role));
            foundComponents.addAll(getProjectScopedExtensionComponents(projects, role));
            return foundComponents;
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
  5. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

            UnsupportedOperationException.class, () -> getList().addAll(0, MinimalCollection.of(e0())));
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_supportedSomePresent() {
        assertTrue(
            "addAll(n, allPresent) should return true",
            getList().addAll(0, MinimalCollection.of(e0(), e3())));
        expectAdded(0, e0(), e3());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        assertEquals(HashMultiset.create(asList("a", "b", "b", "b", "c")), multiset);
      }
    
      public void testBuilderAddAllIterator() {
        Iterator<String> iterator = asList("a", "b", "a", "c").iterator();
        ImmutableMultiset<String> multiset =
            new ImmutableMultiset.Builder<String>().addAll(iterator).build();
        assertEquals(HashMultiset.create(asList("a", "b", "a", "c")), multiset);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        oneValueAccumulatorByAddAllEmptyStats.addAll(Stats.of());
    
        twoValuesAccumulator = new StatsAccumulator();
        twoValuesAccumulator.addAll(TWO_VALUES);
    
        twoValuesAccumulatorByAddAllStats = new StatsAccumulator();
        twoValuesAccumulatorByAddAllStats.addAll(Stats.of(ONE_VALUE));
        twoValuesAccumulatorByAddAllStats.addAll(Stats.of(OTHER_ONE_VALUE));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableListTest.java

      }
    
      public void testBuilderAddAll_iterable() {
        List<String> a = asList("a", "b");
        List<String> b = asList("c", "d");
        ImmutableList<String> list = new ImmutableList.Builder<String>().addAll(a).addAll(b).build();
        assertEquals(asList("a", "b", "c", "d"), list);
        b.set(0, "f");
        assertEquals(asList("a", "b", "c", "d"), list);
      }
    
      public void testBuilderAddAll_iterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/StatsAccumulator.java

      public void addAll(LongStream values) {
        addAll(values.collect(StatsAccumulator::new, StatsAccumulator::add, StatsAccumulator::addAll));
      }
    
      /**
       * Adds the given statistics to the dataset, as if the individual values used to compute the
       * statistics had been added directly.
       */
      public void addAll(Stats values) {
        if (values.count() == 0) {
          return;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java

                    try (InputStream is = urls.nextElement().openStream()) {
                        ExtensionDescriptor descriptor = BUILDER.build(is);
                        artifacts.addAll(descriptor.getExportedArtifacts());
                        packages.addAll(descriptor.getExportedPackages());
                    }
                }
            } catch (IOException ignored) {
                // exports descriptors are entirely optional
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top