Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 162 for Multisets (0.17 sec)

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

       * <p>Results are undefined if {@code multiset1} and {@code multiset2} are based on different
       * equivalence relations (as {@code HashMultiset} and {@code TreeMultiset} are).
       *
       * @since 14.0
       */
      public static <E extends @Nullable Object> Multiset<E> union(
          final Multiset<? extends E> multiset1, final Multiset<? extends E> multiset2) {
        checkNotNull(multiset1);
        checkNotNull(multiset2);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

       * <p>Results are undefined if {@code multiset1} and {@code multiset2} are based on different
       * equivalence relations (as {@code HashMultiset} and {@code TreeMultiset} are).
       *
       * @since 14.0
       */
      public static <E extends @Nullable Object> Multiset<E> union(
          final Multiset<? extends E> multiset1, final Multiset<? extends E> multiset2) {
        checkNotNull(multiset1);
        checkNotNull(multiset2);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

        resetContainer(mapEntry(k0(), v0()), mapEntry(k0(), v1()), mapEntry(k1(), v0()));
        Multiset<K> keys = multimap().keys();
        assertEquals(2, keys.count(k0()));
        assertEquals(1, keys.count(k1()));
        assertEquals(3, keys.size());
        assertContainsAllOf(keys, k0(), k1());
        assertContainsAllOf(
            keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1));
      }
    
      @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

            Multiset<String> multiset2 = LinkedHashMultiset.create();
            multiset1.add("equalIn1");
            multiset1.add("fewerIn1");
            multiset2.add("equalIn1");
            multiset2.add("fewerIn1", 3);
            multiset2.add("onlyIn2", 2);
            for (int i = 0; i < elements.length; i++) {
              // add 1 more copy of each element to multiset1 than multiset2
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/AbstractMultiset.java

       * and if, for each element, the two multisets have the same count.
       */
      @Override
      public final boolean equals(@CheckForNull Object object) {
        return Multisets.equalsImpl(this, object);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>This implementation returns the hash code of {@link Multiset#entrySet()}.
       */
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetCountTester.java

      }
    
      public void testCount_wrongType() {
        assertEquals(
            "multiset.count(wrongType) didn't return 0", 0, getMultiset().count(WrongType.VALUE));
      }
    
      /**
       * Returns {@link Method} instances for the read tests that assume multisets support duplicates so
       * that the test of {@code Multisets.forSet()} can suppress them.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractMultiset.java

       * and if, for each element, the two multisets have the same count.
       */
      @Override
      public final boolean equals(@CheckForNull Object object) {
        return Multisets.equalsImpl(this, object);
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>This implementation returns the hash code of {@link Multiset#entrySet()}.
       */
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

            Multiset<String> multiset2 = LinkedHashMultiset.create();
            multiset1.add("equalIn1");
            multiset1.add("fewerIn1");
            multiset2.add("equalIn1");
            multiset2.add("fewerIn1", 3);
            multiset2.add("onlyIn2", 2);
            for (int i = 0; i < elements.length; i++) {
              // add 1 more copy of each element to multiset1 than multiset2
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/MultisetEntrySetTester.java

        assertEquals(
            "multiset.entrySet() iterator.next() returned incorrect entry",
            Multisets.immutableEntry(e0(), 1),
            iterator.next());
        assertFalse(
            "size 1 multiset.entrySet() iterator.hasNext() returned true after next()",
            iterator.hasNext());
        iterator.remove();
        assertTrue(
            "multiset isn't empty after multiset.entrySet() iterator.remove()",
            getMultiset().isEmpty());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ForwardingMultiset.java

       */
      protected class StandardElementSet extends Multisets.ElementSet<E> {
        /** Constructor for use by subclasses. */
        public StandardElementSet() {}
    
        @Override
        Multiset<E> multiset() {
          return ForwardingMultiset.this;
        }
    
        @Override
        public Iterator<E> iterator() {
          return Multisets.elementIterator(multiset().entrySet().iterator());
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K bytes
    - Viewed (0)
Back to top