Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 167 for multiset (0.07 sec)

  1. guava-tests/test/com/google/common/graph/TraverserTest.java

    import com.google.common.collect.HashMultiset;
    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMultimap;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.primitives.Chars;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    @RunWith(JUnit4.class)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 47.5K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/LinkedListMultimap.java

          public boolean remove(@CheckForNull 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K 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.collect.Multisets.UnmodifiableMultiset;
    import java.util.Collections;
    import java.util.Comparator;
    import java.util.SortedSet;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Implementation of {@link Multisets#unmodifiableSortedMultiset(SortedMultiset)} for GWT.
     *
     * @author Louis Wasserman
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/UnmodifiableSortedMultiset.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Multisets.UnmodifiableMultiset;
    import com.google.errorprone.annotations.concurrent.LazyInit;
    import java.util.Comparator;
    import java.util.NavigableSet;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Implementation of {@link Multisets#unmodifiableSortedMultiset(SortedMultiset)}, split out into
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. 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, ImmutableList.asImmutableList(entriesArray), size);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top