Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 369 for addAll (0.07 sec)

  1. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

          this.backingCollection = backingMultiset;
        }
    
        @Override
        protected Multiset<T> delegate() {
          return backingCollection;
        }
    
        @Override
        public boolean addAll(Collection<? extends T> collection) {
          return standardAddAll(collection);
        }
    
        @Override
        public boolean add(T element) {
          return standardAdd(element);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                new TestStringListGenerator() {
                  @Override
                  public List<String> create(String[] elements) {
                    List<String> innerList = new ArrayList<>();
                    Collections.addAll(innerList, elements);
                    return unmodifiableList(innerList);
                  }
                })
            .named("unmodifiableList/ArrayList")
            .withFeatures(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Queues.java

        if (elements instanceof Collection) {
          return new ArrayDeque<>((Collection<? extends E>) elements);
        }
        ArrayDeque<E> deque = new ArrayDeque<>();
        Iterables.addAll(deque, elements);
        return deque;
      }
    
      // ConcurrentLinkedQueue
    
      /** Creates an empty {@code ConcurrentLinkedQueue}. */
      @J2ktIncompatible
      @GwtIncompatible // ConcurrentLinkedQueue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 14:11:14 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/AbstractMultimap.java

          Collection<? extends V> valueCollection = (Collection<? extends V>) values;
          return !valueCollection.isEmpty() && get(key).addAll(valueCollection);
        } else {
          Iterator<? extends V> valueItr = values.iterator();
          return valueItr.hasNext() && Iterators.addAll(get(key), valueItr);
        }
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean putAll(Multimap<? extends K, ? extends V> multimap) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

        Collection<E> copy = new ArrayList<>();
        copy.addAll(collection);
    
        try {
          collection.add(sampleElement);
          fail("add succeeded on unmodifiable collection");
        } catch (UnsupportedOperationException expected) {
        }
    
        assertCollectionsAreEquivalent(copy, collection);
    
        try {
          collection.addAll(siblingCollection);
          fail("addAll succeeded on unmodifiable collection");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

        multiset = ConcurrentHashMultiset.create(map);
        multiset.addAll(ImmutableList.of("a", "a", "b", "c", "d", "b"));
        reserializeAndAssert(multiset);
      }
    
      public void testSerializationWithMapMaker3() {
        ConcurrentMap<String, AtomicInteger> map = new MapMaker().makeMap();
        multiset = ConcurrentHashMultiset.create(map);
        multiset.addAll(ImmutableList.of("a", "a", "b", "c", "d", "b"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblemCollector.java

        }
    
        public void add(ModelProblem problem) {
            problems.add(problem);
    
            severities.add(problem.getSeverity());
        }
    
        public void addAll(List<ModelProblem> problems) {
            this.problems.addAll(problems);
    
            for (ModelProblem problem : problems) {
                severities.add(problem.getSeverity());
            }
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java

        }
    
        private List<Multiset.Entry<E>> snapshot() {
          List<Multiset.Entry<E>> list = newArrayListWithExpectedSize(size());
          // Not Iterables.addAll(list, this), because that'll forward right back here.
          Iterators.addAll(list, iterator());
          return list;
        }
      }
    
      /** @serialData the ConcurrentMap of elements and their counts. */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/ldap/LdapUser.java

                if (StringUtil.isNotBlank(baseDn) && StringUtil.isNotBlank(accountFilter)) {
                    final LdapManager ldapManager = ComponentUtil.getLdapManager();
                    permissions = distinct(ArrayUtils.addAll(ldapManager.getRoles(this, baseDn, accountFilter, groupFilter, roles -> {
                        permissions = distinct(roles);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/ListMultimapPutAllTester.java

        for (K k : sampleKeys()) {
          resetContainer();
    
          List<V> expectedValues = copyToList(multimap().get(k));
    
          assertTrue(multimap().putAll(k, values));
          expectedValues.addAll(values);
    
          assertGet(k, expectedValues);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top