Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 361 for Keys (0.17 sec)

  1. guava-tests/benchmark/com/google/common/collect/MapBenchmark.java

              map.put(element, element);
            }
            return map;
          }
        },
        UnmodHM {
          @Override
          Map<Element, Element> create(Collection<Element> keys) {
            return Collections.unmodifiableMap(Hash.create(keys));
          }
        },
        SyncHM {
          @Override
          Map<Element, Element> create(Collection<Element> keys) {
            return Collections.synchronizedMap(Hash.create(keys));
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ConcurrentHashMultisetBasherTest.java

        private final ImmutableList<String> keys;
        private final Random random = new Random();
    
        private MutateTask(ConcurrentHashMultiset<String> multiset, ImmutableList<String> keys) {
          this.multiset = multiset;
          this.keys = keys;
        }
    
        @Override
        public int[] call() throws Exception {
          int iterations = 100000;
          int nKeys = keys.size();
          int[] deltas = new int[nKeys];
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MultimapBuilder.java

      private static final int DEFAULT_EXPECTED_KEYS = 8;
    
      /** Uses a hash table to map keys to value collections. */
      public static MultimapBuilderWithKeys<@Nullable Object> hashKeys() {
        return hashKeys(DEFAULT_EXPECTED_KEYS);
      }
    
      /**
       * Uses a hash table to map keys to value collections, initialized to expect the specified number
       * of keys.
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

              .addEqualityGroup(cache.asMap().keySet(), keys)
              .addEqualityGroup(ImmutableSet.of())
              .testEquals();
          assertEquals(WARMUP_SIZE, keys.size());
          for (int i = WARMUP_MIN; i < WARMUP_MAX; i++) {
            Object key = warmed.get(i - WARMUP_MIN).getKey();
            assertTrue(keys.contains(key));
            assertTrue(keys.remove(key));
            assertFalse(keys.remove(key));
            assertFalse(keys.contains(key));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableBiMap.java

      /**
       * Returns a {@link Collector} that accumulates elements into an {@code ImmutableBiMap} whose keys
       * and values are the result of applying the provided mapping functions to the input elements.
       * Entries appear in the result {@code ImmutableBiMap} in encounter order.
       *
       * <p>If the mapped keys or values contain duplicates (according to {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutTester.java

      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testPutPresentKeyPropagatesToGet() {
        List<K> keys = Helpers.copyToList(multimap().keySet());
        for (K key : keys) {
          resetContainer();
    
          int size = getNumElements();
    
          Collection<V> collection = multimap().get(key);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/HashBasedTable.java

     *
     * <p>The views returned by {@link #column}, {@link #columnKeySet()}, and {@link #columnMap()} have
     * iterators that don't support {@code remove()}. Otherwise, all optional operations are supported.
     * Null row keys, columns keys, and values are not supported.
     *
     * <p>Lookups by row key are often faster than lookups by column key, because the data is stored in
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/TestSortedMapGenerator.java

      @Override
      SortedMap<K, V> create(Object... elements);
    
      /**
       * Returns an entry with a key less than the keys of the {@link #samples()} and less than the key
       * of {@link #belowSamplesGreater()}.
       */
      Entry<K, V> belowSamplesLesser();
    
      /**
       * Returns an entry with a key less than the keys of the {@link #samples()} but greater than the
       * key of {@link #belowSamplesLesser()}.
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapsCollectionTest.java

                        map.putAll(ENTRIES_TO_FILTER);
                        return Maps.filterKeys(map, FILTER_KEYS);
                      }
                    })
                .named("Maps.filterKeys[Map, Predicate]")
                .withFeatures(
                    MapFeature.ALLOWS_NULL_KEYS,
                    MapFeature.ALLOWS_NULL_VALUES,
                    MapFeature.ALLOWS_ANY_NULL_QUERIES,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

                            PopulatableMapAsMultimap.create();
                        populateMultimapForKeys(multimap, elements);
                        return multimap.build().keys();
                      }
                    })
                .named("Multimaps.forMap.keys")
                .withFeatures(FOR_MAP_FEATURES_ANY)
                .suppressing(getCountDuplicateInitializingMethods())
                .suppressing(getSetCountDuplicateInitializingMethods())
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top