- Sort Score
- Result 10 results
- Languages All
Results 21 - 26 of 26 for newTreeMap (0.19 sec)
-
android/guava-tests/test/com/google/common/collect/MultimapsTest.java
private static final long serialVersionUID = 0; } public void testNewListMultimap() { CountingSupplier<LinkedList<Integer>> factory = new ListSupplier(); Map<Color, Collection<Integer>> map = Maps.newTreeMap(); ListMultimap<Color, Integer> multimap = Multimaps.newListMultimap(map, factory); assertEquals(0, factory.count); multimap.putAll(Color.BLUE, asList(3, 1, 4, 1)); assertEquals(1, factory.count);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 38.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
@VisibleForTesting List<Class<?>> findClassesToTest( Iterable<? extends Class<?>> classes, Iterable<String> explicitTestNames) { // "a.b.Foo" -> a.b.Foo.class TreeMap<String, Class<?>> classMap = Maps.newTreeMap(); for (Class<?> cls : classes) { classMap.put(cls.getName(), cls); } // Foo.class -> [FooTest.class, FooTests.class, FooTestSuite.class, ...]
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:43:49 UTC 2024 - 17.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
/* * this map would contain the same exact elements as the MinMaxHeap; the * value in the map is the number of occurrences of the key. */ SortedMap<Integer, AtomicInteger> replica = Maps.newTreeMap(); assertTrue("Empty heap should be OK", mmHeap.isIntact()); for (int i = 0; i < heapSize; i++) { int randomInt = random.nextInt(); mmHeap.offer(randomInt);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return generateTreeMap(key, value); } @Generates static <K extends Comparable<? super K>, V> TreeMap<K, V> generateTreeMap( K key, @Nullable V value) { TreeMap<K, V> map = Maps.newTreeMap(); map.put(key, value); return map; } @Generates static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V> generateImmutableSortedMap( K key, V value) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 28.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return generateTreeMap(key, value); } @Generates static <K extends Comparable<? super K>, V> TreeMap<K, V> generateTreeMap( K key, @Nullable V value) { TreeMap<K, V> map = Maps.newTreeMap(); map.put(key, value); return map; } @Generates static <K extends Comparable<? super K>, V> ImmutableSortedMap<K, V> generateImmutableSortedMap( K key, V value) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 28.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
/* * this map would contain the same exact elements as the MinMaxHeap; the * value in the map is the number of occurrences of the key. */ SortedMap<Integer, AtomicInteger> replica = Maps.newTreeMap(); assertTrue("Empty heap should be OK", mmHeap.isIntact()); for (int i = 0; i < heapSize; i++) { int randomInt = random.nextInt(); mmHeap.offer(randomInt);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35.9K bytes - Viewed (0)