- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 354 for testvalue (0.2 sec)
-
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
assertSame(entry.getValue(), cache.asMap().putIfAbsent(entry.getKey(), newValue)); Object newKey = new Object(); assertNull(cache.asMap().putIfAbsent(newKey, entry.getValue())); // this getUnchecked() call shouldn't be a cache miss; verified below assertEquals(entry.getValue(), cache.getUnchecked(entry.getKey())); assertEquals(entry.getValue(), cache.getUnchecked(newKey));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 15K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
assertEquals(TypeToken.of(String.class), map.entrySet().iterator().next().getKey()); assertEquals("test", map.entrySet().iterator().next().getValue()); assertThrows( UnsupportedOperationException.class, () -> map.entrySet().iterator().next().setValue(1)); } public void testEntrySetToArrayMutationThrows() { map.putInstance(String.class, "test");
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Feb 22 17:15:24 GMT 2024 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/StandardTable.java
if (entry.getValue().containsKey(columnKey)) { @WeakOuter class EntryImpl extends AbstractMapEntry<R, V> { @Override public R getKey() { return entry.getKey(); } @Override public V getValue() { return entry.getValue().get(columnKey); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Oct 13 14:11:58 GMT 2023 - 29.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java
assertEquals("bar", entry.getKey()); assertEquals(1, (int) entry.getValue()); entry = entries.next(); assertEquals("foo", entry.getKey()); assertEquals(2, (int) entry.getValue()); entry.setValue(4); entry = entries.next(); assertEquals("bar", entry.getKey()); assertEquals(3, (int) entry.getValue()); assertFalse(entries.hasNext()); entries.remove();
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 17.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableEntry.java
} @Override @ParametricNullness public final K getKey() { return key; } @Override @ParametricNullness public final V getValue() { return value; } @Override @ParametricNullness public final V setValue(@ParametricNullness V value) { throw new UnsupportedOperationException(); } private static final long serialVersionUID = 0;
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Jan 19 21:29:44 GMT 2023 - 1.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
Entry<K, V> e = (Entry<K, V>) o; e.setValue(value); // muhahaha! return equal(this.getKey(), e.getKey()) && equal(this.getValue(), e.getValue()); } return false; } @Override public int hashCode() { K k = getKey(); V v = getValue(); return ((k == null) ? 0 : k.hashCode()) ^ ((v == null) ? 0 : v.hashCode());
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 17.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/CompactHashMap.java
} @Override @ParametricNullness public V setValue(@ParametricNullness V value) { Map<K, V> delegate = delegateOrNull(); if (delegate != null) { return uncheckedCastNullableTToT(delegate.put(key, value)); // See discussion in getValue(). } updateLastKnownIndex(); if (lastKnownIndex == -1) { put(key, value);
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Jun 26 21:02:13 GMT 2023 - 39.8K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/MapIteratorCache.java
private final Map<K, V> backingMap; /* * Per JDK: "the behavior of a map entry is undefined if the backing map has been modified after * the entry was returned by the iterator, except through the setValue operation on the map entry" * As such, this field must be cleared before every map mutation. * * Note about volatile: volatile doesn't make it safe to read from a mutable graph in one thread
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Oct 06 00:47:57 GMT 2021 - 4.7K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/MessageDigestCreationBenchmark.java
@Benchmark int getInstance(int reps) throws Exception { int retValue = 0; for (int i = 0; i < reps; i++) { retValue ^= MessageDigest.getInstance(algorithm).getDigestLength(); } return retValue; } @Benchmark int clone(int reps) throws Exception { int retValue = 0; for (int i = 0; i < reps; i++) { retValue ^= ((MessageDigest) md.clone()).getDigestLength(); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 6K bytes - Viewed (0)