Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 162 for Multisets (0.12 sec)

  1. android/guava/src/com/google/common/collect/Serialization.java

          Multiset<E> multiset, ObjectOutputStream stream) throws IOException {
        int entryCount = multiset.entrySet().size();
        stream.writeInt(entryCount);
        for (Multiset.Entry<E> entry : multiset.entrySet()) {
          stream.writeObject(entry.getElement());
          stream.writeInt(entry.getCount());
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

      }
    
      // Required Implementations
    
      /**
       * {@inheritDoc}
       *
       * <p>Invoking {@link Multiset.Entry#getCount} on an entry in the returned set always returns the
       * current count of that element in the multiset, as opposed to the count at the time the entry
       * was retrieved.
       */
      @Override
      public Set<Multiset.Entry<E>> entrySet() {
        return super.entrySet();
      }
    
      @Override
      Iterator<E> elementIterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CollectCollectors.java

            (multiset1, multiset2) -> {
              multiset1.addAll(multiset2);
              return multiset1;
            },
            (Multiset<E> multiset) -> ImmutableMultiset.copyFromEntries(multiset.entrySet()));
      }
    
      static <T extends @Nullable Object, E extends @Nullable Object, M extends Multiset<E>>
          Collector<T, ?, M> toMultiset(
              Function<? super T, E> elementFunction,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Serialization.java

          Multiset<E> multiset, ObjectOutputStream stream) throws IOException {
        int entryCount = multiset.entrySet().size();
        stream.writeInt(entryCount);
        for (Multiset.Entry<E> entry : multiset.entrySet()) {
          stream.writeObject(entry.getElement());
          stream.writeInt(entry.getCount());
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Mar 06 16:06:58 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

    import com.google.common.annotations.VisibleForTesting;
    import com.google.common.base.Objects;
    import com.google.common.base.Preconditions;
    import com.google.common.collect.Multiset.Entry;
    import com.google.common.collect.Multisets.AbstractEntry;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Arrays;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableMultimap.java

        }
    
        @Override
        public int size() {
          return ImmutableMultimap.this.size();
        }
    
        @Override
        Multiset.Entry<K> getEntry(int index) {
          Map.Entry<K, ? extends Collection<V>> entry = map.entrySet().asList().get(index);
          return Multisets.immutableEntry(entry.getKey(), entry.getValue().size());
        }
    
        @Override
        boolean isPartialView() {
          return true;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Multimaps.java

        }
    
        @Override
        Iterator<Multiset.Entry<K>> entryIterator() {
          return new TransformedIterator<Map.Entry<K, Collection<V>>, Multiset.Entry<K>>(
              multimap.asMap().entrySet().iterator()) {
            @Override
            Multiset.Entry<K> transform(final Map.Entry<K, Collection<V>> backingEntry) {
              return new Multisets.AbstractEntry<K>() {
                @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 86.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      public void testCreation_noArgs() {
        Multiset<String> multiset = ImmutableMultiset.of();
        assertTrue(multiset.isEmpty());
      }
    
      public void testCreation_oneElement() {
        Multiset<String> multiset = ImmutableMultiset.of("a");
        assertEquals(HashMultiset.create(asList("a")), multiset);
      }
    
      public void testCreation_twoElements() {
        Multiset<String> multiset = ImmutableMultiset.of("a", "b");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
Back to top