Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 162 for Multisets (0.1 sec)

  1. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

      private static <T> ImmutableMultiset<T> multiset(T value, int count) {
        return multiset(ImmutableMap.of(value, count));
      }
    
      private static <T> ImmutableMultiset<T> multiset(T value1, int count1, T value2, int count2) {
        return multiset(ImmutableMap.of(value1, count1, value2, count2));
      }
    
      private static <T> ImmutableMultiset<T> multiset(Map<T, Integer> counts) {
        ImmutableMultiset.Builder<T> builder = ImmutableMultiset.builder();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 09 22:57:07 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

            .testForwarding(
                Multiset.class,
                new Function<Multiset, Multiset>() {
                  @Override
                  public Multiset apply(Multiset delegate) {
                    return wrap(delegate);
                  }
                });
      }
    
      public void testEquals() {
        Multiset<String> set1 = ImmutableMultiset.of("one");
        Multiset<String> set2 = ImmutableMultiset.of("two");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeMultisetTest.java

        multiset.add("foo", 2);
        multiset.add("bar");
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
        assertEquals("[foo x 2, bar]", multiset.toString());
      }
    
      public void testCreateFromIterable() {
        Multiset<String> multiset = TreeMultiset.create(asList("foo", "bar", "foo"));
        assertEquals(3, multiset.size());
        assertEquals(2, multiset.count("foo"));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/ParametricNullness.java

     * supplied by the user of the class. For example, {@code Multiset.Entry.getElement()} returns
     * {@code @ParametricNullness E}, which means:
     *
     * <ul>
     *   <li>{@code getElement} on a {@code Multiset.Entry<@NonNull String>} returns {@code @NonNull
     *       String}.
     *   <li>{@code getElement} on a {@code Multiset.Entry<@Nullable String>} returns {@code @Nullable
     *       String}.
     * </ul>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 10 21:27:51 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/ParametricNullness.java

     * supplied by the user of the class. For example, {@code Multiset.Entry.getElement()} returns
     * {@code @ParametricNullness E}, which means:
     *
     * <ul>
     *   <li>{@code getElement} on a {@code Multiset.Entry<@NonNull String>} returns {@code @NonNull
     *       String}.
     *   <li>{@code getElement} on a {@code Multiset.Entry<@Nullable String>} returns {@code @Nullable
     *       String}.
     * </ul>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 10 21:27:51 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/LenientSerializableTester.java

        assertEquals(original, copy);
        assertTrue(copy instanceof ImmutableSet);
        return copy;
      }
    
      @CanIgnoreReturnValue
      @GwtIncompatible // SerializableTester
      static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) {
        Multiset<E> copy = reserialize(original);
        assertEquals(original, copy);
        assertTrue(copy instanceof ImmutableMultiset);
        return copy;
      }
    
      @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/LenientSerializableTester.java

        assertEquals(original, copy);
        assertTrue(copy instanceof ImmutableSet);
        return copy;
      }
    
      @CanIgnoreReturnValue
      @GwtIncompatible // SerializableTester
      static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) {
        Multiset<E> copy = reserialize(original);
        assertEquals(original, copy);
        assertTrue(copy instanceof ImmutableMultiset);
        return copy;
      }
    
      @CanIgnoreReturnValue
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultisetTester.java

     */
    
    package com.google.common.collect.testing.google;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.testing.AbstractCollectionTester;
    import org.junit.Ignore;
    
    /**
     * Base class for multiset collection tests.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

      }
    
      @Generates
      static <E> Multiset<E> generateMultiset(@Nullable E freshElement) {
        return generateHashMultiset(freshElement);
      }
    
      @Generates
      static <E> HashMultiset<E> generateHashMultiset(@Nullable E freshElement) {
        HashMultiset<E> multiset = HashMultiset.create();
        multiset.add(freshElement);
        return multiset;
      }
    
      @Generates
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/xml/ParametricNullness.java

     * supplied by the user of the class. For example, {@code Multiset.Entry.getElement()} returns
     * {@code @ParametricNullness E}, which means:
     *
     * <ul>
     *   <li>{@code getElement} on a {@code Multiset.Entry<@NonNull String>} returns {@code @NonNull
     *       String}.
     *   <li>{@code getElement} on a {@code Multiset.Entry<@Nullable String>} returns {@code @Nullable
     *       String}.
     * </ul>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Aug 10 21:27:51 UTC 2022
    - 4.1K bytes
    - Viewed (0)
Back to top