Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 161 for Multiset (0.04 sec)

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

        suite.addTest(
            MultisetTestSuiteBuilder.using(
                    new TestStringMultisetGenerator() {
                      @Override
                      protected Multiset<String> create(String[] elements) {
                        PopulatableMapAsMultimap<String, Integer> multimap =
                            PopulatableMapAsMultimap.create();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Sep 24 22:52:18 UTC 2025
    - 28.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

        suite.addTest(
            MultisetTestSuiteBuilder.using(
                    new TestStringMultisetGenerator() {
                      @Override
                      protected Multiset<String> create(String[] elements) {
                        PopulatableMapAsMultimap<String, Integer> multimap =
                            PopulatableMapAsMultimap.create();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Sep 24 22:52:18 UTC 2025
    - 28.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/LinkedListMultimap.java

          public boolean remove(@Nullable Object o) { // for performance
            return !LinkedListMultimap.this.removeAll(o).isEmpty();
          }
        }
        return new KeySetImpl();
      }
    
      @Override
      Multiset<K> createKeys() {
        return new Multimaps.Keys<K, V>(this);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>The iterator generated by the returned collection traverses the values in the order they
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Sets.java

        }
        return changed;
      }
    
      static boolean removeAllImpl(Set<?> set, Collection<?> collection) {
        checkNotNull(collection); // for GWT
        if (collection instanceof Multiset) {
          collection = ((Multiset<?>) collection).elementSet();
        }
        /*
         * AbstractSet.removeAll(List) has quadratic behavior if the list size
         * is just more than the set's size.  We augment the test by
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Sep 22 18:35:44 UTC 2025
    - 81.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSet.java

       */
      public static <E> ImmutableSet<E> copyOf(Collection<? extends E> elements) {
        /*
         * TODO(lowasser): consider checking for ImmutableAsList here
         * TODO(lowasser): consider checking for Multiset here
         */
        // Don't refer to ImmutableSortedSet by name so it won't pull in all that code
        if (elements instanceof ImmutableSet && !(elements instanceof SortedSet)) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Nov 07 16:09:47 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/UnmodifiableSortedMultiset.java

    package com.google.common.collect;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.collect.Multisets.UnmodifiableMultiset;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.SortedSet;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Implementation of {@link Multisets#unmodifiableSortedMultiset(SortedMultiset)} for GWT.
     *
     * @author Louis Wasserman
     */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java

        treeMultiset = TreeMultiset.create();
    
        Random random = new Random();
    
        int sizeRemaining = size;
    
        // TODO(kevinb): generate better test contents for multisets
        while (sizeRemaining > 0) {
          // The JVM will return interned values for small ints.
          Integer value = random.nextInt(1000) + 128;
          int count = min(random.nextInt(10) + 1, sizeRemaining);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

          int count = entry.getCount();
          size += count;
          E element = checkNotNull(entry.getElement());
          delegateMap.put(element, count);
          if (!(entry instanceof Multisets.ImmutableEntry)) {
            entriesArray[i] = Multisets.immutableEntry(element, count);
          }
        }
        return new JdkBackedImmutableMultiset<>(delegateMap, asImmutableList(entriesArray), size);
      }
    
      private JdkBackedImmutableMultiset(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/client/FesenClient.java

        }
    
        @Override
        public ActionFuture<MultiGetResponse> multiGet(final MultiGetRequest request) {
            return client.multiGet(request);
        }
    
        @Override
        public void multiGet(final MultiGetRequest request, final ActionListener<MultiGetResponse> listener) {
            client.multiGet(request, listener);
        }
    
        @Override
        public MultiGetRequestBuilder prepareMultiGet() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sun Nov 23 02:01:26 UTC 2025
    - 26.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

        @Override
        public ActionFuture<MultiGetResponse> multiGet(final MultiGetRequest request) {
            return client.multiGet(request);
        }
    
        /**
         * Gets multiple documents asynchronously with a callback.
         *
         * @param request  the multi-get request
         * @param listener the response listener
         */
        @Override
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 122.4K bytes
    - Viewed (1)
Back to top