- Sort Score
- Num 10 results
- Language All
Results 171 - 180 of 1,751 for key2 (0.02 seconds)
-
guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
return new CacheLoader<K, V>() { @Override public V load(K key) throws Exception { return loader.load(key); } @Override public Map<K, V> loadAll(Iterable<? extends K> keys) throws Exception { Map<K, V> result = new HashMap<>(); // allow nulls for (K key : keys) { result.put(key, load(key)); } return result; } }; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 5.1K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapReplaceAllTester.java
getMap() .replaceAll( (K k, V v) -> { int index = keys().asList().indexOf(k); return values().asList().get(index + 1); }); List<Entry<K, V>> orderedEntries = getOrderedElements(); int index = 0; for (K key : getMap().keySet()) { assertEquals(orderedEntries.get(index).getKey(), key); index++; } } @MapFeature.Require(absent = SUPPORTS_PUT)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 31 14:51:04 GMT 2024 - 4.5K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java
* Searches for the property with the specified key in this property list. * * @param key the property key. * @return the value in this property list with the specified key value. */ public String getProperty(String key) { return this.get(key); } /** * Searches for the property with the specified key in this property list. If the key is not found in this propertyCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 38.4K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenProperties.java
* Searches for the property with the specified key in this property list. * * @param key the property key. * @return the value in this property list with the specified key value. */ public String getProperty(String key) { return this.get(key); } /** * Searches for the property with the specified key in this property list. If the key is not found in this propertyCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Oct 16 09:03:48 GMT 2025 - 38.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/TestingCacheLoaders.java
return new CacheLoader<K, V>() { @Override public V load(K key) throws Exception { return loader.load(key); } @Override public Map<K, V> loadAll(Iterable<? extends K> keys) throws Exception { Map<K, V> result = new HashMap<>(); // allow nulls for (K key : keys) { result.put(key, load(key)); } return result; } }; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 5.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/BiMap.java
* provided key-value mapping, this method has no effect. * * <p>Note that a successful call to this method could cause the size of the bimap to increase by * one, stay the same, or even decrease by one. * * <p><b>Warning:</b> If an existing entry with this value is removed, the key for that entry is * discarded and not returned. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/SetMultimap.java
* * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a * {@link Set}, instead of the {@link java.util.Collection} specified in the {@link Multimap} * interface. */ @Override Set<V> get(@ParametricNullness K key); /** * {@inheritDoc} * * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/SetMultimap.java
* * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns a * {@link Set}, instead of the {@link java.util.Collection} specified in the {@link Multimap} * interface. */ @Override Set<V> get(@ParametricNullness K key); /** * {@inheritDoc} * * <p>Because a {@code SetMultimap} has unique values for a given key, this method returns aCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 4.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapClearTester.java
assertEmpty(multimap().entries()); assertEmpty(multimap().asMap()); assertEmpty(multimap().keySet()); assertEmpty(multimap().keys()); assertEmpty(multimap().values()); for (K key : sampleKeys()) { assertGet(key); } } @MapFeature.Require(SUPPORTS_REMOVE) public void testClear() { multimap().clear(); assertCleared(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 21:10:54 GMT 2025 - 4.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/SortedSetMultimap.java
import org.jspecify.annotations.Nullable; /** * A {@code SetMultimap} whose set of values for a given key are kept sorted; that is, they comprise * a {@link SortedSet}. It cannot hold duplicate key-value pairs; adding a key-value pair that's * already in the multimap has no effect. This interface does not specify the ordering of the * multimap's keys. See the {@link Multimap} documentation for information common to all multimaps. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 5.2K bytes - Click Count (0)