Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 402 for addAll (0.21 sec)

  1. android/guava/src/com/google/common/math/StatsAccumulator.java

       */
      public void addAll(Iterable<? extends Number> values) {
        for (Number value : values) {
          add(value.doubleValue());
        }
      }
    
      /**
       * Adds the given values to the dataset.
       *
       * @param values a series of values, which will be converted to {@code double} values (this may
       *     cause loss of precision)
       */
      public void addAll(Iterator<? extends Number> values) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

       * Builder#addAll(Iterable)}, with all the performance implications associated with that.
       */
      public static ImmutableIntArray copyOf(Iterable<Integer> values) {
        if (values instanceof Collection) {
          return copyOf((Collection<Integer>) values);
        }
        return builder().addAll(values).build();
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  3. 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)));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/CollectCollectors.java

        EnumSetAccumulator<E> combine(EnumSetAccumulator<E> other) {
          if (this.set == null) {
            return other;
          } else if (other.set == null) {
            return this;
          } else {
            this.set.addAll(other.set);
            return this;
          }
        }
    
        ImmutableSet<E> toImmutableSet() {
          if (set == null) {
            return ImmutableSet.of();
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllTester.java

        assertTrue(
            "addAll(allPresent) should return true", getList().addAll(MinimalCollection.of(e0())));
        expectAdded(e0());
      }
    
      @CollectionFeature.Require(absent = SUPPORTS_ADD)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAll_unsupportedAllPresent() {
        try {
          getList().addAll(MinimalCollection.of(e0()));
          fail("addAll(allPresent) should throw");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractContainerTester.java

        expected.addAll(Arrays.asList(elements));
        expectContents(expected);
      }
    
      protected final void expectAdded(int index, E... elements) {
        expectAdded(index, Arrays.asList(elements));
      }
    
      protected final void expectAdded(int index, Collection<E> elements) {
        List<E> expected = Helpers.copyToList(getSampleElements());
        expected.addAll(index, elements);
        expectContents(expected);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/ConcurrentNavigableMapTestSuiteBuilder.java

      @SuppressWarnings("rawtypes") // class literals
      @Override
      protected List<Class<? extends AbstractTester>> getTesters() {
        List<Class<? extends AbstractTester>> testers = Helpers.copyToList(super.getTesters());
        testers.addAll(ConcurrentMapTestSuiteBuilder.TESTERS);
        return testers;
      }
    
      @Override
      NavigableMapTestSuiteBuilder<K, V> subSuiteUsing(TestSortedMapGenerator<K, V> generator) {
        return using(generator);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/auth/AuthenticationManager.java

            for (final AuthenticationChain chain : chains) {
                u = chain.load(u);
            }
            return u;
        }
    
        public void addChain(final AuthenticationChain chain) {
            chains = ArrayUtils.addAll(chains, chain);
        }
    
        protected StreamOf<AuthenticationChain> chains() {
            return stream(chains);
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

       * Builder#addAll(Iterable)}, with all the performance implications associated with that.
       */
      public static ImmutableDoubleArray copyOf(Iterable<Double> values) {
        if (values instanceof Collection) {
          return copyOf((Collection<Double>) values);
        }
        return builder().addAll(values).build();
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ImmutableLongArrayTest.java

            }
            builder.addAll(array);
          }
        },
        ADD_COLLECTION {
          @Override
          void doIt(ImmutableLongArray.Builder builder, AtomicLong counter) {
            List<Long> list = new ArrayList<>();
            long num = RANDOM.nextInt(10);
            for (int i = 0; i < num; i++) {
              list.add(counter.getAndIncrement());
            }
            builder.addAll(list);
          }
        },
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 20.2K bytes
    - Viewed (0)
Back to top