- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 326 for memset (0.22 sec)
-
android/guava-tests/test/com/google/common/cache/CacheExpirationTest.java
for (int i = 0; i < 10; i++) { cache.getUnchecked(i); ticker.advance(1, MILLISECONDS); } Set<Integer> keySet = cache.asMap().keySet(); assertThat(keySet).containsExactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); // 0 expires ticker.advance(1, MILLISECONDS); assertThat(keySet).containsExactly(1, 2, 3, 4, 5, 6, 7, 8, 9); // reorder getAll(cache, asList(0, 1, 2));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Aug 05 17:21:46 GMT 2022 - 18.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
assertMultimapRemainsUnmodified(multimap, originalEntries); // Test #keySet() assertSetIsUnmodifiable(multimap.keySet(), sampleKey); assertMultimapRemainsUnmodified(multimap, originalEntries); // Test #get() if (!multimap.isEmpty()) { K key = multimap.keySet().iterator().next(); assertCollectionIsUnmodifiable(multimap.get(key), sampleValue);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 14.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumBiMap.java
public final class EnumBiMap<K extends Enum<K>, V extends Enum<V>> extends AbstractBiMap<K, V> { /* * J2CL's EnumMap does not need the Class instance, so we can use Object.class instead. (Or we * could use null, but that messes with our nullness checking, including under J2KT. We could * probably work around it by changing how we annotate the J2CL EnumMap, but that's probably more * trouble than just using Object.class.) *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Aug 24 01:40:03 GMT 2023 - 6.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheEvictionTest.java
CacheTesting.warmUp(cache, 0, 10); Set<Integer> keySet = cache.asMap().keySet(); assertThat(keySet).containsExactly(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); // re-order getAll(cache, asList(0, 1, 2)); CacheTesting.drainRecencyQueues(cache); assertThat(keySet).containsExactly(3, 4, 5, 6, 7, 8, 9, 0, 1, 2); // evict 3, 4, 5 getAll(cache, asList(10, 11, 12));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 14.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java
SortedSet<@Nullable String> keySet = multimap.keySet(); assertEquals(null, keySet.first()); assertEquals("google", keySet.last()); assertEquals(StringLength.COMPARATOR, keySet.comparator()); assertEquals(Sets.<@Nullable String>newHashSet(null, "tree"), keySet.headSet("yahoo")); assertEquals(Sets.newHashSet("google"), keySet.tailSet("yahoo"));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 8.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapKeySetTester.java
for (Entry<K, V> entry : getSampleElements()) { assertTrue(multimap().keySet().contains(entry.getKey())); } } @CollectionSize.Require(absent = ZERO) @MapFeature.Require(ALLOWS_NULL_KEYS) public void testKeySetContainsNullKeyPresent() { initMultimapWithNullKey(); assertTrue(multimap().keySet().contains(null)); } @MapFeature.Require(ALLOWS_NULL_KEY_QUERIES)
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jan 09 20:10:38 GMT 2018 - 3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
protected final void assertInvariants(Map<K, V> map) { Set<K> keySet = map.keySet(); Collection<V> valueCollection = map.values(); Set<Entry<K, V>> entrySet = map.entrySet(); assertEquals(map.size() == 0, map.isEmpty()); assertEquals(map.size(), keySet.size()); assertEquals(keySet.size() == 0, keySet.isEmpty()); assertEquals(!keySet.isEmpty(), keySet.iterator().hasNext()); int expectedKeySetHash = 0;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 45.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractImmutableMapMapInterfaceTest.java
assertEquals("[" + JOINER.join(map.keySet()) + "]", map.keySet().toString()); assertEquals("[" + JOINER.join(map.values()) + "]", map.values().toString()); assertEquals(MinimalSet.from(map.entrySet()), map.entrySet()); assertEquals(Sets.newHashSet(map.keySet()), map.keySet()); }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Mar 09 02:18:08 GMT 2022 - 1.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractImmutableBiMapMapInterfaceTest.java
assertEquals("[" + JOINER.join(map.keySet()) + "]", map.keySet().toString()); assertEquals("[" + JOINER.join(map.values()) + "]", map.values().toString()); assertEquals(Sets.newHashSet(map.entrySet()), map.entrySet()); assertEquals(Sets.newHashSet(map.keySet()), map.keySet()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Mar 09 16:16:28 GMT 2022 - 1.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetAddAllTester.java
assertTrue( "add(somePresent) should return true", getSet().addAll(MinimalCollection.of(e3(), e0()))); expectAdded(e3()); } @CollectionFeature.Require(SUPPORTS_ADD) public void testAddAll_withDuplicates() { MinimalCollection<E> elementsToAdd = MinimalCollection.of(e3(), e4(), e3(), e4()); assertTrue("add(hasDuplicates) should return true", getSet().addAll(elementsToAdd)); expectAdded(e3(), e4()); }
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Feb 20 17:00:05 GMT 2024 - 2.3K bytes - Viewed (0)