Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 165 for multisets (0.08 sec)

  1. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

    import com.google.common.collect.ImmutableTable;
    import com.google.common.collect.ListMultimap;
    import com.google.common.collect.MapDifference;
    import com.google.common.collect.Multimap;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.PeekingIterator;
    import com.google.common.collect.Range;
    import com.google.common.collect.RowSortedTable;
    import com.google.common.collect.SetMultimap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Iterables.java

       *     Object)
       */
      public static int frequency(Iterable<?> iterable, @CheckForNull Object element) {
        if ((iterable instanceof Multiset)) {
          return ((Multiset<?>) iterable).count(element);
        } else if ((iterable instanceof Set)) {
          return ((Set<?>) iterable).contains(element) ? 1 : 0;
        }
        return Iterators.frequency(iterable.iterator(), element);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TreeMultimap.java

     * instances.
     *
     * <p><b>Warning:</b> The comparators or comparables used must be <i>consistent with equals</i> as
     * explained by the {@link Comparable} class specification. Otherwise, the resulting multiset will
     * violate the general contract of {@link SetMultimap}, which is specified in terms of {@link
     * Object#equals}.
     *
     * <p>The collections returned by {@code keySet} and {@code asMap} iterate through the keys
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

            assertThat(queue).doesNotContain(element);
          }
          assertThat(queue).isEmpty();
        }
      }
    
      public void testRandomAddsAndRemoves() {
        Random random = new Random(0);
        Multiset<Integer> elements = HashMultiset.create();
        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create();
        int range = 10_000; // range should be small enough that equal elements occur semi-frequently
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Collections2.java

      private static boolean isPermutation(List<?> first, List<?> second) {
        if (first.size() != second.size()) {
          return false;
        }
        Multiset<?> firstMultiset = HashMultiset.create(first);
        Multiset<?> secondMultiset = HashMultiset.create(second);
        return firstMultiset.equals(secondMultiset);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/ServiceManager.java

    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    import com.google.common.collect.MultimapBuilder;
    import com.google.common.collect.Multimaps;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.SetMultimap;
    import com.google.common.util.concurrent.Service.State;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/ServiceManager.java

    import com.google.common.collect.Lists;
    import com.google.common.collect.Maps;
    import com.google.common.collect.MultimapBuilder;
    import com.google.common.collect.Multimaps;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.collect.SetMultimap;
    import com.google.common.util.concurrent.Service.State;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

            assertThat(queue).doesNotContain(element);
          }
          assertThat(queue).isEmpty();
        }
      }
    
      public void testRandomAddsAndRemoves() {
        Random random = new Random(0);
        Multiset<Integer> elements = HashMultiset.create();
        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create();
        int range = 10_000; // range should be small enough that equal elements occur semi-frequently
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  9. android/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)
  10. 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)
Back to top