Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 167 for multiset (0.06 sec)

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

       * @return a set of entries representing the data of this multiset
       */
      Set<Entry<E>> entrySet();
    
      /**
       * An unmodifiable element-count pair for a multiset. The {@link Multiset#entrySet} method returns
       * a view of the multiset whose elements are of this class. A multiset implementation may return
       * Entry instances that are either live "read-through" views to the Multiset, or immutable
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 21K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multiset.java

       * @return a set of entries representing the data of this multiset
       */
      Set<Entry<E>> entrySet();
    
      /**
       * An unmodifiable element-count pair for a multiset. The {@link Multiset#entrySet} method returns
       * a view of the multiset whose elements are of this class. A multiset implementation may return
       * Entry instances that are either live "read-through" views to the Multiset, or immutable
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Jun 17 14:40:53 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  3. 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)
  4. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeysTester.java

      }
    
      @CollectionSize.Require(ONE)
      @CollectionFeature.Require(SUPPORTS_ITERATOR_REMOVE)
      public void testKeysEntrySetIteratorRemove() {
        Multiset<K> keys = multimap().keys();
        Iterator<Multiset.Entry<K>> itr = keys.entrySet().iterator();
        assertEquals(Multisets.immutableEntry(k0(), 1), itr.next());
        itr.remove();
        assertTrue(multimap().isEmpty());
      }
    
      @CollectionSize.Require(SEVERAL)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetFeature.java

    @GwtCompatible
    public enum MultisetFeature implements Feature<Multiset> {
      /**
       * Indicates that elements from {@code Multiset.entrySet()} update to reflect changes in the
       * backing multiset.
       */
      ENTRIES_ARE_VIEWS;
    
      @Override
      public Set<Feature<? super Multiset>> getImpliedFeatures() {
        return emptySet();
      }
    
      @Retention(RetentionPolicy.RUNTIME)
      @Inherited
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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. android/guava/src/com/google/common/collect/AbstractMultiset.java

    /**
     * This class provides a skeletal implementation of the {@link Multiset} interface. A new multiset
     * implementation can be created easily by extending this class and implementing the {@link
     * Multiset#entrySet()} method, plus optionally overriding {@link #add(Object, int)} and {@link
     * #remove(Object, int)} to enable modifications to the multiset.
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 6K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java

    import com.google.common.collect.testing.features.CollectionSize;
    import com.google.common.testing.EqualsTester;
    import org.junit.Ignore;
    
    /**
     * Tests for {@code Multiset.equals} and {@code Multiset.hashCode}.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top