- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 109 for KeySet (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/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));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15K bytes - Click Count (0) -
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));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 19.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractBiMap.java
} @LazyInit private transient @Nullable Set<K> keySet; @Override public Set<K> keySet() { Set<K> result = keySet; return (result == null) ? keySet = new KeySet() : result; } @WeakOuter private final class KeySet extends ForwardingSet<K> { @Override protected Set<K> delegate() { return delegate.keySet(); } @Override public void clear() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 15:50:50 GMT 2025 - 13.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableTableTest.java
// Even though rowKeySet, columnKeySet, and cellSet have the same // iteration ordering, row has an inconsistent ordering. assertThat(table.row('b').keySet()).containsExactly(1, 2).inOrder(); assertThat(ImmutableTable.copyOf(table).row('b').keySet()).containsExactly(2, 1).inOrder(); } public void testCopyOfSparse() { Table<Character, Integer, String> table = TreeBasedTable.create();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 18.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/ForwardingMap.java
return delegate().put(key, value); } @Override public void putAll(Map<? extends K, ? extends V> map) { delegate().putAll(map); } @Override public Set<K> keySet() { return delegate().keySet(); } @Override public Collection<V> values() { return delegate().values(); } @Override public Set<Entry<K, V>> entrySet() { return delegate().entrySet();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 9.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/EmptyCachesTest.java
Set<Object> keys = cache.asMap().keySet(); assertThrows(NullPointerException.class, () -> keys.toArray((Object[]) null)); checkEmpty(cache); } } public void testKeySet_addNotSupported() { for (LoadingCache<Object, Object> cache : caches()) { assertThrows(UnsupportedOperationException.class, () -> cache.asMap().keySet().add(1)); assertThrows(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 11.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultimap.java
KeySet(Map<K, Collection<V>> subMap) { super(subMap); } @Override public Iterator<K> iterator() { Iterator<Entry<K, Collection<V>>> entryIterator = map().entrySet().iterator(); return new Iterator<K>() { @Nullable Entry<K, Collection<V>> entry; @Override public boolean hasNext() { return entryIterator.hasNext();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Aug 12 15:51:57 GMT 2025 - 46.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/LinkedHashMultimap.java
* * <p>Changes to the returned set will update the underlying multimap, and vice versa. However, * <i>adding</i> to the returned set is not possible. */ @Override public Set<K> keySet() { return super.keySet(); } /** * Returns a collection of all values in the multimap. Changes to the returned collection will * update the underlying multimap, and vice versa. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 19.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java
EnumBiMap<Currency, Country> bimap = EnumBiMap.create(map); Iterator<Currency> iter = bimap.keySet().iterator(); assertEquals(Currency.DOLLAR, iter.next()); iter.remove(); // forward map ordered by currency assertThat(bimap.keySet()).containsExactly(Currency.FRANC, Currency.PESO).inOrder(); // forward map ordered by currency (even for country values)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/LinkedHashMultimap.java
* * <p>Changes to the returned set will update the underlying multimap, and vice versa. However, * <i>adding</i> to the returned set is not possible. */ @Override public Set<K> keySet() { return super.keySet(); } /** * Returns a collection of all values in the multimap. Changes to the returned collection will * update the underlying multimap, and vice versa. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 20K bytes - Click Count (0)