Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for populate (0.26 sec)

  1. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

      private static Map<String, String> toHashMap(Entry<String, String>[] entries) {
        return populate(new HashMap<String, String>(), entries);
      }
    
      // TODO: call conversion constructors or factory methods instead of using
      // populate() on an empty map
      private static <T, M extends Map<T, String>> M populate(M map, Entry<T, String>[] entries) {
        for (Entry<T, String> entry : entries) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/UnmodifiableMultimapAsMapImplementsMapTest.java

      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = LinkedHashMultimap.create();
        populate(delegate);
        return Multimaps.unmodifiableMultimap(delegate).asMap();
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MultimapsFilterEntriesAsMapTest.java

        return multimap.asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> multimap = createMultimap();
        populate(multimap);
        return multimap.asMap();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/NewCustomTableTest.java

              }
            };
        Map<String, Map<Integer, Character>> backingMap = Maps.newLinkedHashMap();
        Table<String, Integer, Character> table = Tables.newCustomTable(backingMap, factory);
        populate(table, data);
        return table;
      }
    
      public void testRowKeySetOrdering() {
        table = create("foo", 3, 'a', "bar", 1, 'b', "foo", 2, 'c');
        assertThat(table.rowKeySet()).containsExactly("foo", "bar").inOrder();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/TransposedTableTest.java

        Table<Integer, String, Character> original = HashBasedTable.create();
        Table<String, Integer, Character> table = Tables.transpose(original);
        table.clear();
        populate(table, data);
        return table;
      }
    
      public void testTransposeTransposed() {
        Table<Integer, String, Character> original = HashBasedTable.create();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:54:11 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  6. guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

      @Benchmark
      void pollAndAdd(int reps) {
        for (int i = 0; i < reps; i++) {
          // TODO(kevinb): precompute random #s?
          queue.add(queue.poll() ^ random.nextInt());
        }
      }
    
      @Benchmark
      void populate(int reps) {
        for (int i = 0; i < reps; i++) {
          queue.clear();
          for (int j = 0; j < size; j++) {
            // TODO(kevinb): precompute random #s?
            queue.add(random.nextInt());
          }
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

      private static Map<String, String> toHashMap(Entry<String, String>[] entries) {
        return populate(new HashMap<String, String>(), entries);
      }
    
      // TODO: call conversion constructors or factory methods instead of using
      // populate() on an empty map
      private static <T, M extends Map<T, String>> M populate(M map, Entry<T, String>[] entries) {
        for (Entry<T, String> entry : entries) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 17K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/ImmutableMultimapAsMapImplementsMapTest.java

        return ImmutableMultimap.<String, Integer>of().asMap();
      }
    
      @Override
      protected Map<String, Collection<Integer>> makePopulatedMap() {
        Multimap<String, Integer> delegate = HashMultimap.create();
        populate(delegate);
        return ImmutableMultimap.copyOf(delegate).asMap();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

          boolean modifiable, boolean allowsNulls, boolean supportsIteratorRemove) {
        super(allowsNulls, allowsNulls, false, modifiable, modifiable, supportsIteratorRemove);
      }
    
      protected void populate(Multimap<String, Integer> multimap) {
        multimap.put("one", 1);
        multimap.put("two", 2);
        multimap.put("two", 22);
        multimap.put("three", 3);
        multimap.put("three", 33);
        multimap.put("three", 333);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/CollectionFuture.java

        List<@Nullable Present<V>> values =
            futures.isEmpty()
                ? Collections.<@Nullable Present<V>>emptyList()
                : Lists.<@Nullable Present<V>>newArrayListWithCapacity(futures.size());
    
        // Populate the results list with null initially.
        for (int i = 0; i < futures.size(); ++i) {
          values.add(null);
        }
    
        this.values = values;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top