Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for ImmutableMultiset (0.11 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      public void testSerialization_asList() {
        ImmutableMultiset<String> multiset = ImmutableMultiset.of("a", "a", "b", "b", "b");
        SerializableTester.reserializeAndAssert(multiset.asList());
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableMultiset.of(), ImmutableMultiset.of())
            .addEqualityGroup(ImmutableMultiset.of(1), ImmutableMultiset.of(1))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      public void testSerialization_asList() {
        ImmutableMultiset<String> multiset = ImmutableMultiset.of("a", "a", "b", "b", "b");
        SerializableTester.reserializeAndAssert(multiset.asList());
      }
    
      public void testEquals() {
        new EqualsTester()
            .addEqualityGroup(ImmutableMultiset.of(), ImmutableMultiset.of())
            .addEqualityGroup(ImmutableMultiset.of(1), ImmutableMultiset.of(1))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableMultiset.java

    /**
     * Implementation of {@link ImmutableMultiset} with zero or more elements.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true, serializable = true)
    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    @ElementTypesAreNonnullByDefault
    class RegularImmutableMultiset<E> extends ImmutableMultiset<E> {
      static final RegularImmutableMultiset<Object> EMPTY =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableMultisetFloodingTest.java

      }
    
      /** All the ways to create an ImmutableMultiset. */
      enum ConstructionPathway implements Construction<Multiset<Object>> {
        COPY_OF_COLLECTION {
          @Override
          public ImmutableMultiset<Object> create(List<?> keys) {
            return ImmutableMultiset.copyOf(keys);
          }
        },
        COPY_OF_ITERATOR {
          @Override
          public ImmutableMultiset<Object> create(List<?> keys) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(
                  SortedSetMultimap.class,
                  Multimaps.unmodifiableSortedSetMultimap(TreeMultimap.create()))
              .put(Multiset.class, ImmutableMultiset.of())
              .put(ImmutableMultiset.class, ImmutableMultiset.of())
              .put(SortedMultiset.class, ImmutableSortedMultiset.of())
              .put(ImmutableSortedMultiset.class, ImmutableSortedMultiset.of())
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableMultiset.java

    @ElementTypesAreNonnullByDefault
    class RegularImmutableMultiset<E> extends ImmutableMultiset<E> {
      static final ImmutableMultiset<Object> EMPTY =
          JdkBackedImmutableMultiset.create(ImmutableList.of());
    
      RegularImmutableMultiset() {}
    
      static <E> ImmutableMultiset<E> create(Collection<? extends Entry<? extends E>> entries) {
        if (entries.isEmpty()) {
          return ImmutableMultiset.of();
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

                      @Override
                      protected Multiset<String> create(String[] elements) {
                        return new StandardImplForwardingMultiset<>(ImmutableMultiset.copyOf(elements));
                      }
                    })
                .named("ForwardingMultiset[ImmutableMultiset] with standard " + "implementations")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

                      @Override
                      protected Multiset<String> create(String[] elements) {
                        return new StandardImplForwardingMultiset<>(ImmutableMultiset.copyOf(elements));
                      }
                    })
                .named("ForwardingMultiset[ImmutableMultiset] with standard " + "implementations")
                .withFeatures(CollectionSize.ANY, CollectionFeature.ALLOWS_NULL_QUERIES)
                .createTestSuite());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

    import java.util.Map;
    import javax.annotation.CheckForNull;
    
    /**
     * An implementation of ImmutableMultiset backed by a JDK Map and a list of entries. Used to protect
     * against hash flooding attacks.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    final class JdkBackedImmutableMultiset<E> extends ImmutableMultiset<E> {
      private final Map<E, Integer> delegateMap;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

              public int add(String element, int occurrences) {
                addCalls.incrementAndGet();
                return super.add(element, occurrences);
              }
            };
        ImmutableMultiset<String> adds =
            new ImmutableMultiset.Builder<String>().addCopies("x", 10).build();
        multiset.addAll(adds);
        assertEquals(1, addCalls.get());
      }
    
      public void testRemoveUnsupported() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top