Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 369 for addAll (0.05 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: 2024-11-01 12:43
    - Last Modified: 2024-10-17 20:00
    - 6.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            assertThat(ArrayUtil.addAll((Object[]) null, (Object[]) null), is(nullValue()));
            assertThat(ArrayUtil.addAll(null, emptyArray).length, is(0));
            assertThat(ArrayUtil.addAll(emptyArray, null), is(sameInstance(emptyArray)));
            assertThat(ArrayUtil.addAll(emptyArray, null), is(sameInstance(emptyArray)));
            assertThat(ArrayUtil.addAll(emptyArray, emptyArray), is(sameInstance(emptyArray)));
    Registered: 2024-11-01 20:58
    - Last Modified: 2024-03-07 01:59
    - 10.6K bytes
    - Viewed (0)
  3. 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: 2024-11-01 12:43
    - Last Modified: 2024-10-23 16:45
    - 36.8K bytes
    - Viewed (0)
  4. 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: 2024-11-01 12:43
    - Last Modified: 2024-10-30 16:15
    - 7.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ForwardingList.java

     * methods of the delegate. For example, overriding {@link #add} alone <b>will not</b> change the
     * behavior of {@link #addAll}, which can lead to unexpected behavior. In this case, you should
     * override {@code addAll} as well, either providing your own implementation, or delegating to the
     * provided {@code standardAddAll} method.
     *
    Registered: 2024-11-01 12:43
    - Last Modified: 2023-05-12 15:26
    - 7.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java

            final List<String> tagList = new ArrayList<>();
            for (final String tagFieldName : tagFieldNames) {
                tagList.addAll(Arrays.asList(SuggestUtil.parseQuery(queryString, tagFieldName)));
                if (filterQueryString != null) {
                    tagList.addAll(Arrays.asList(SuggestUtil.parseQuery(filterQueryString, tagFieldName)));
                }
            }
    Registered: 2024-11-08 09:08
    - Last Modified: 2024-02-22 01:36
    - 13.7K bytes
    - Viewed (0)
  7. 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: 2024-11-03 03:35
    - Last Modified: 2024-10-25 12:31
    - 27.5K bytes
    - Viewed (1)
  8. 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: 2024-11-01 12:43
    - Last Modified: 2024-10-17 20:00
    - 6.3K bytes
    - Viewed (0)
  9. 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: 2024-11-01 12:43
    - Last Modified: 2024-10-30 16:15
    - 20.8K bytes
    - Viewed (0)
  10. 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: 2024-11-01 12:43
    - Last Modified: 2024-10-23 16:45
    - 36.8K bytes
    - Viewed (0)
Back to top