Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 369 for addAll (0.09 sec)

  1. guava/src/com/google/common/collect/Synchronized.java

        @Override
        public boolean add(E e) {
          synchronized (mutex) {
            return delegate().add(e);
          }
        }
    
        @Override
        public boolean addAll(Collection<? extends E> c) {
          synchronized (mutex) {
            return delegate().addAll(c);
          }
        }
    
        @Override
        public void clear() {
          synchronized (mutex) {
            delegate().clear();
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/eventbus/SubscriberRegistry.java

            CopyOnWriteArraySet<Subscriber> newSet = new CopyOnWriteArraySet<>();
            eventSubscribers =
                MoreObjects.firstNonNull(subscribers.putIfAbsent(eventType, newSet), newSet);
          }
    
          eventSubscribers.addAll(eventMethodsInListener);
        }
      }
    
      /** Unregisters all subscribers on the given listener object. */
      void unregister(Object listener) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:16:45 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

      @CanIgnoreReturnValue
      public B suppressing(Method... methods) {
        return suppressing(asList(methods));
      }
    
      @CanIgnoreReturnValue
      public B suppressing(Collection<Method> methods) {
        suppressedTests.addAll(methods);
        return self();
      }
    
      public Set<Method> getSuppressedTests() {
        return suppressedTests;
      }
    
      private static final Logger logger =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

      }
    
      private static TestSuite wrappedHashMapTests(
          WrappedHashMapGenerator generator, String name, Feature<?>... features) {
        List<Feature<?>> featuresList = Lists.newArrayList(features);
        Collections.addAll(
            featuresList,
            MapFeature.GENERAL_PURPOSE,
            CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
            CollectionSize.ANY);
        return MapTestSuiteBuilder.using(generator)
            .named(name)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

                for (final BooleanClause clause : clauses) {
                    final Query q = clause.getQuery();
                    if (q instanceof BooleanQuery) {
                        queryList.addAll(getTermQueryList(q, fields));
                    } else if (q instanceof final TermQuery termQuery) {
                        for (final String field : fields) {
                            if (field.equals(termQuery.getTerm().field())) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Sat Oct 12 00:10:39 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/FluentIterable.java

        return Iterables.<E>toArray(getDelegate(), type);
      }
    
      /**
       * Copies all the elements from this fluent iterable to {@code collection}. This is equivalent to
       * calling {@code Iterables.addAll(collection, this)}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code stream.forEachOrdered(collection::add)} or {@code
       * stream.forEach(collection::add)}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 24 13:42:31 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Headers.kt

          value: String,
        ) = apply {
          headersCheckName(name)
          addLenient(name, value)
        }
    
        /**
         * Adds all headers from an existing collection.
         */
        fun addAll(headers: Headers) = commonAddAll(headers)
    
        /**
         * Add a header with the specified name and formatted date. Does validation of header names and
         * value.
         */
        fun add(
          name: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Table.java

      /**
       * Returns a set of all row key / column key / value triplets. Changes to the returned set will
       * update the underlying table, and vice versa. The cell set does not support the {@code add} or
       * {@code addAll} methods.
       *
       * @return set of table cells consisting of row key / column key / value triplets
       */
      Set<Cell<R, C, V>> cellSet();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

                Currency.FRANC, Country.SWITZERLAND);
        EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map);
        Set<Object> uniqueEntries = Sets.newIdentityHashSet();
        uniqueEntries.addAll(bimap.entrySet());
        assertEquals(3, uniqueEntries.size());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      public void testSerializable() {
        SerializableTester.reserializeAndAssert(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/FilteredCollectionsTestUtil.java

            C filtered = filter(createUnfiltered(contents), EVEN);
            C filteredToModify = filter(createUnfiltered(contents), EVEN);
    
            assertThrows(IllegalArgumentException.class, () -> filteredToModify.addAll(toAdd));
    
            assertThat(filteredToModify).containsExactlyElementsIn(filtered);
          }
        }
    
        public void testAddToFilterFiltered() {
          for (List<Integer> contents : SAMPLE_INPUTS) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top