- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 509 for entryOf (7.64 sec)
-
android/guava/src/com/google/common/graph/MapRetrievalCache.java
// Store a local reference to the cache entry. If the backing map is immutable, this, // in combination with immutable cache entries, will ensure a thread-safe cache. CacheEntry<K, V> entry; // Check cache. We use == on purpose because it's cheaper and a cache miss is ok. entry = cacheEntry1; if (entry != null && entry.key == key) { return entry.value; } entry = cacheEntry2;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Apr 26 17:43:39 GMT 2021 - 3.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMapEntrySet.java
return map().size(); } @Override public boolean contains(@CheckForNull Object object) { if (object instanceof Entry) { Entry<?, ?> entry = (Entry<?, ?>) object; V value = map().get(entry.getKey()); return value != null && value.equals(entry.getValue()); } return false; } @Override boolean isPartialView() { return map().isPartialView(); }
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 4.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingNavigableMapTest.java
@Override protected SortedMap<String, String> create(Entry<String, String>[] entries) { NavigableMap<String, String> map = new SafeTreeMap<>(); for (Entry<String, String> entry : entries) { map.put(entry.getKey(), entry.getValue()); } return new StandardImplForwardingNavigableMap<>(map);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 9.5K bytes - Viewed (0) -
guava/src/com/google/common/collect/JdkBackedImmutableBiMap.java
result.inverse = this; } return result; } @WeakOuter private final class InverseEntries extends ImmutableList<Entry<V, K>> { @Override public Entry<V, K> get(int index) { Entry<K, V> entry = entries.get(index); return Maps.immutableEntry(entry.getValue(), entry.getKey()); } @Override boolean isPartialView() { return false; } @Override
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 4.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapEntrySetTester.java
@CollectionSize.Require(absent = ZERO) public void testSetValue() { for (Entry<K, V> entry : getMap().entrySet()) { if (entry.getKey().equals(k0())) { assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3())); break; } } expectReplacement(entry(k0(), v3())); } @MapFeature.Require({SUPPORTS_PUT, ALLOWS_NULL_VALUES})
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 6.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ForwardingSortedMapTest.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Apr 19 19:24:36 GMT 2023 - 7.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java
} /** * Wraps the {@code setValue} implementation of an {@code Entry} to enforce the class constraint. */ private static <B extends @Nullable Object> Entry<Class<? extends @NonNull B>, B> checkedEntry( final Entry<Class<? extends @NonNull B>, B> entry) { return new ForwardingMapEntry<Class<? extends @NonNull B>, B>() { @Override protected Entry<Class<? extends @NonNull B>, B> delegate() { return entry;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 6.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java
return map().size(); } @Override public boolean contains(@CheckForNull Object object) { if (object instanceof Entry) { Entry<?, ?> entry = (Entry<?, ?>) object; V value = map().get(entry.getKey()); return value != null && value.equals(entry.getValue()); } return false; } @Override boolean isPartialView() { return map().isPartialView(); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Nov 30 21:54:06 GMT 2023 - 3.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapPutTester.java
private Entry<K, V> nullKeyEntry; private Entry<K, V> nullValueEntry; private Entry<K, V> nullKeyValueEntry; private Entry<K, V> presentKeyNullValueEntry; @Override public void setUp() throws Exception { super.setUp(); nullKeyEntry = entry(null, v3()); nullValueEntry = entry(k3(), null); nullKeyValueEntry = entry(null, null);
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 9.4K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java
@SuppressWarnings("unchecked") Entry<String, String>[] array = (Entry<String, String>[]) new Entry<?, ?>[entries.length]; int i = 0; for (Object o : entries) { @SuppressWarnings("unchecked") Entry<String, String> e = (Entry<String, String>) o; array[i++] = e; } return create(array); } protected abstract ListMultimap<String, String> create(Entry<String, String>[] entries); @Override
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 3K bytes - Viewed (0)