Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for TreeMultimap (0.11 sec)

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

      public static <K extends Comparable, V extends Comparable> TreeMultimap<K, V> create() {
        return new TreeMultimap<>(Ordering.natural(), Ordering.natural());
      }
    
      /**
       * Creates an empty {@code TreeMultimap} instance using explicit comparators. Neither comparator
       * may be null; use {@link Ordering#natural()} to specify natural order.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Mar 09 00:21:17 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

        return suite;
      }
    
      protected SetMultimap<String, Integer> create() {
        return TreeMultimap.create();
      }
    
      /** Create and populate a {@code TreeMultimap} with the natural ordering of keys and values. */
      private TreeMultimap<String, Integer> createPopulate() {
        TreeMultimap<String, Integer> multimap = TreeMultimap.create();
        multimap.put("google", 2);
        multimap.put("google", 6);
        multimap.put("foo", 3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SubMapMultimapAsMapImplementsMapTest.java

    import java.util.Map;
    
    /**
     * Test {@code TreeMultimap.asMap().subMap()} with {@link MapInterfaceTest}.
     *
     * @author Jared Levy
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public class SubMapMultimapAsMapImplementsMapTest extends AbstractMultimapAsMapImplementsMapTest {
    
      public SubMapMultimapAsMapImplementsMapTest() {
        super(true, true, true);
      }
    
      private TreeMultimap<String, Integer> createMultimap() {
    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. guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

      private SetMultimap<String, Integer> create() {
        return TreeMultimap.create(StringLength.COMPARATOR, DECREASING_INT_COMPARATOR);
      }
    
      /** Create and populate a {@code TreeMultimap} with explicit comparators. */
      private TreeMultimap<@Nullable String, @Nullable Integer> createPopulate() {
        TreeMultimap<@Nullable String, @Nullable Integer> multimap =
            TreeMultimap.create(StringLength.COMPARATOR, DECREASING_INT_COMPARATOR);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ForwardingSortedSetMultimapTest.java

                  }
                });
      }
    
      public void testEquals() {
        SortedSetMultimap<Integer, String> map1 = TreeMultimap.create(ImmutableMultimap.of(1, "one"));
        SortedSetMultimap<Integer, String> map2 = TreeMultimap.create(ImmutableMultimap.of(2, "two"));
        new EqualsTester()
            .addEqualityGroup(map1, wrap(map1), wrap(map1))
            .addEqualityGroup(map2, wrap(map2))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/AbstractSortedKeySortedSetMultimap.java

    import java.util.SortedSet;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Basic implementation of a {@link SortedSetMultimap} with a sorted key set.
     *
     * <p>This superclass allows {@code TreeMultimap} to override methods to return navigable set and
     * map types in non-GWT only, while GWT code will inherit the SortedMap/SortedSet overrides.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

      public void testUnmodifiableTreeMultimap() {
        checkUnmodifiableMultimap(TreeMultimap.<String, Integer>create(), false, "null", 42);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerializingUnmodifiableTreeMultimap() {
        Multimap<String, Integer> unmodifiable =
            prepareUnmodifiableTests(TreeMultimap.<String, Integer>create(), false, "null", 42);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractSortedKeySortedSetMultimap.java

    import java.util.SortedSet;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Basic implementation of a {@link SortedSetMultimap} with a sorted key set.
     *
     * <p>This superclass allows {@code TreeMultimap} to override methods to return navigable set and
     * map types in non-GWT only, while GWT code will inherit the SortedMap/SortedSet overrides.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

    import com.google.common.collect.SortedSetMultimap;
    import com.google.common.collect.Table;
    import com.google.common.collect.Tables;
    import com.google.common.collect.TreeBasedTable;
    import com.google.common.collect.TreeMultimap;
    import com.google.common.io.ByteSink;
    import com.google.common.io.ByteSource;
    import com.google.common.io.ByteStreams;
    import com.google.common.io.CharSink;
    import com.google.common.io.CharSource;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/HashMultimapTest.java

                    CollectionSize.ANY)
                .createTestSuite());
        suite.addTestSuite(HashMultimapTest.class);
        return suite;
      }
    
      /*
       * The behavior of toString() is tested by TreeMultimap, which shares a
       * lot of code with HashMultimap and has deterministic iteration order.
       */
      public void testCreate() {
        HashMultimap<String, Integer> multimap = HashMultimap.create();
        multimap.put("foo", 1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top