Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for newTreeMap (0.1 sec)

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

      @Override
      protected SortedMap<String, String> makeEmptyMap() {
        return transformValues(Maps.<String, String>newTreeMap(), Functions.<String>identity());
      }
    
      @Override
      protected SortedMap<String, String> makePopulatedMap() {
        SortedMap<String, Integer> underlying = Maps.newTreeMap();
        underlying.put("a", 1);
        underlying.put("b", 2);
        underlying.put("c", 3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/NewCustomTableTest.java

        Supplier<TreeMap<Integer, Character>> factory =
            new Supplier<TreeMap<Integer, Character>>() {
              @Override
              public TreeMap<Integer, Character> get() {
                return Maps.newTreeMap();
              }
            };
        Map<String, Map<Integer, Character>> backingMap = Maps.newLinkedHashMap();
        Table<String, Integer, Character> table = newCustomTable(backingMap, factory);
        populate(table, data);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TreeRangeMap.java

          NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound = Maps.newTreeMap();
          entriesByLowerBound.putAll(((TreeRangeMap<K, V>) rangeMap).entriesByLowerBound);
          return new TreeRangeMap<>(entriesByLowerBound);
        } else {
          NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound = Maps.newTreeMap();
          for (Entry<Range<K>, ? extends V> entry : rangeMap.asMapOfRanges().entrySet()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/TreeRangeMap.java

          NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound = Maps.newTreeMap();
          entriesByLowerBound.putAll(((TreeRangeMap<K, V>) rangeMap).entriesByLowerBound);
          return new TreeRangeMap<>(entriesByLowerBound);
        } else {
          NavigableMap<Cut<K>, RangeMapEntry<K, V>> entriesByLowerBound = Maps.newTreeMap();
          for (Entry<Range<K>, ? extends V> entry : rangeMap.asMapOfRanges().entrySet()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        Map<String, Integer> expected = transformValues(underlying, Functions.<Integer>identity());
    
        assertMapsEqual(expected, expected);
    
        Map<String, Integer> equalToUnderlying = Maps.newTreeMap();
        equalToUnderlying.putAll(underlying);
        Map<String, Integer> map = transformValues(equalToUnderlying, Functions.<Integer>identity());
        assertMapsEqual(expected, map);
    
        map =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        Map<String, Integer> expected = transformValues(underlying, Functions.<Integer>identity());
    
        assertMapsEqual(expected, expected);
    
        Map<String, Integer> equalToUnderlying = Maps.newTreeMap();
        equalToUnderlying.putAll(underlying);
        Map<String, Integer> map = transformValues(equalToUnderlying, Functions.<Integer>identity());
        assertMapsEqual(expected, map);
    
        map =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

      }
    
      enum SortedMapImpl implements MapsImplEnum {
        TreeMapImpl {
          @Override
          public <K extends Comparable<K>, V> SortedMap<K, V> create(Map<K, V> map) {
            SortedMap<K, V> result = Maps.newTreeMap();
            result.putAll(map);
            return result;
          }
        },
        ConcurrentSkipListImpl {
          @Override
          public <K extends Comparable<K>, V> SortedMap<K, V> create(Map<K, V> map) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

      }
    
      enum SortedMapImpl implements MapsImplEnum {
        TreeMapImpl {
          @Override
          public <K extends Comparable<K>, V> SortedMap<K, V> create(Map<K, V> map) {
            SortedMap<K, V> result = Maps.newTreeMap();
            result.putAll(map);
            return result;
          }
        },
        ConcurrentSkipListImpl {
          @Override
          public <K extends Comparable<K>, V> SortedMap<K, V> create(Map<K, V> map) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top