- Sort Score
- Num 10 results
- Language All
Results 131 - 140 of 1,209 for KEY (0.01 seconds)
-
android/guava/src/com/google/common/collect/Maps.java
public boolean containsKey(@Nullable Object key) { return unfiltered.containsKey(key) && apply(key, unfiltered.get(key)); } @Override public @Nullable V get(@Nullable Object key) { V value = unfiltered.get(key); return ((value != null) && apply(key, value)) ? value : null; } @Override public boolean isEmpty() { return entrySet().isEmpty(); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 157.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/AbstractMapTester.java
protected Entry<K, V> entry(K key, V value) { return mapEntry(key, value); } @Override protected void expectContents(Collection<Entry<K, V>> expected) { // TODO: move this to invariant checks once the appropriate hook exists? super.expectContents(expected); for (Entry<K, V> entry : expected) { assertEquals(
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Jan 18 02:54:30 GMT 2025 - 7.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/AbstractMultimapTester.java
resetContainer(); } protected void assertGet(K key, V... values) { assertGet(key, asList(values)); } protected void assertGet(K key, Collection<? extends V> values) { assertEqualIgnoringOrder(values, multimap().get(key)); if (!values.isEmpty()) { assertEqualIgnoringOrder(values, multimap().asMap().get(key)); assertFalse(multimap().isEmpty()); } else {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/PluginArtifactsCache.java
} } Key createKey( Plugin plugin, DependencyFilter extensionFilter, List<RemoteRepository> repositories, RepositorySystemSession session); CacheRecord get(Key key) throws PluginResolutionException; CacheRecord put(Key key, List<Artifact> pluginArtifacts); CacheRecord put(Key key, PluginResolutionException e); void flush();Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ObjectCountHashMap.java
public boolean containsKey(@Nullable Object key) { return indexOf(key) != -1; } public int get(@Nullable Object key) { int index = indexOf(key); return (index == -1) ? 0 : values[index]; } @CanIgnoreReturnValue public int remove(@Nullable Object key) { return remove(key, smearedHash(key)); } private int remove(@Nullable Object key, int hash) {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 14.5K bytes - Click Count (0) -
fastapi/security/api_key.py
## Example ```python from fastapi import Depends, FastAPI from fastapi.security import APIKeyHeader app = FastAPI() header_scheme = APIKeyHeader(name="x-key") @app.get("/items/") async def read_items(key: str = Depends(header_scheme)): return {"key": key} ``` """ def __init__(Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 9.6K bytes - Click Count (1) -
guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java
keys -> path.create(transform(keys, key -> immutableEntry(key, new Object()))), keys -> path.create(transform(keys, key -> immutableEntry(new Object(), key))), keys -> path.create(transform(keys, key -> immutableEntry(key, key))))) .collect(toImmutableList()), n -> n * log(n), ImmutableList.of(Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Jul 28 19:11:14 GMT 2025 - 4.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/CompactHashMap.java
&& Objects.equals(key, key(entryIndex))) { return entryIndex; } next = CompactHashing.getNext(entry, mask); } while (next != UNSET); return -1; } @Override public boolean containsKey(@Nullable Object key) { Map<K, V> delegate = delegateOrNull(); return (delegate != null) ? delegate.containsKey(key) : indexOf(key) != -1; } @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 39.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java
return generateListMultimap(key, value); } @Generates static <K, V> ImmutableMultimap<K, V> generateImmutableMultimap(K key, V value) { return ImmutableMultimap.of(key, value); } @Generates static <K, V> ListMultimap<K, V> generateListMultimap(@Nullable K key, @Nullable V value) { return generateArrayListMultimap(key, value); } @Generates
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 28.1K bytes - Click Count (0) -
tests/test_security_api_key_header_description.py
from fastapi import Depends, FastAPI, Security from fastapi.security import APIKeyHeader from fastapi.testclient import TestClient from pydantic import BaseModel app = FastAPI() api_key = APIKeyHeader(name="key", description="An API Key Header") class User(BaseModel): username: str def get_current_user(oauth_header: str = Security(api_key)): user = User(username=oauth_header) return user
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Mon Nov 24 19:03:06 GMT 2025 - 2.1K bytes - Click Count (0)