- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 676 for Holder (0.39 sec)
-
android/guava-tests/test/com/google/common/collect/CountTest.java
} public void testGetAndAdd() { Count holder = new Count(20); assertEquals(20, holder.get()); holder.add(1); assertEquals(21, holder.get()); } public void testAddAndGet() { Count holder = new Count(20); assertEquals(21, holder.addAndGet(1)); } public void testGetAndSet() { Count holder = new Count(10); assertEquals(10, holder.getAndSet(20)); assertEquals(20, holder.get());
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 1.5K bytes - Viewed (0) -
tests/test_dependency_cache.py
from fastapi import Depends, FastAPI, Security from fastapi.testclient import TestClient app = FastAPI() counter_holder = {"counter": 0} async def dep_counter(): counter_holder["counter"] += 1 return counter_holder["counter"] async def super_dep(count: int = Depends(dep_counter)): return count @app.get("/counter/") async def get_counter(count: int = Depends(dep_counter)): return {"counter": count}
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Aug 23 13:30:24 GMT 2022 - 2.7K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContext.java
final Map<Path, Holder> modelByPath = new ConcurrentHashMap<>(); final Map<GAKey, Holder> modelByGA = new ConcurrentHashMap<>(); public static class Holder { private volatile boolean set; private volatile Model model; Holder() {} Holder(Model model) { this.model = Objects.requireNonNull(model);
Java - Registered: Sun Apr 28 03:35:10 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 4K bytes - Viewed (0) -
licenses/github.com/antlr/antlr4/runtime/Go/antlr/v4/LICENSE
and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Plain Text - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Fri Apr 07 01:52:04 GMT 2023 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CountTest.java
} public void testGetAndAdd() { Count holder = new Count(20); assertEquals(20, holder.get()); holder.add(1); assertEquals(21, holder.get()); } public void testAddAndGet() { Count holder = new Count(20); assertEquals(21, holder.addAndGet(1)); } public void testGetAndSet() { Count holder = new Count(10); assertEquals(10, holder.getAndSet(20)); assertEquals(20, holder.get());
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 1.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java
* it can fail here. */ public void testAnonymous() { final AtomicReference<String> holder = new AtomicReference<>(); final AtomicInteger deliveries = new AtomicInteger(); EventBus bus = new EventBus(); bus.register( new Object() { @Subscribe public void accept(String str) { holder.set(str); deliveries.incrementAndGet(); } });
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/eventbus/outside/OutsideEventBusTest.java
* it can fail here. */ public void testAnonymous() { final AtomicReference<String> holder = new AtomicReference<>(); final AtomicInteger deliveries = new AtomicInteger(); EventBus bus = new EventBus(); bus.register( new Object() { @Subscribe public void accept(String str) { holder.set(str); deliveries.incrementAndGet(); } });
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Tue May 15 20:25:06 GMT 2018 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultimapTest.java
ImmutableMultimap.Builder<String, Integer> builder = new Builder<>(); final StringHolder holder = new StringHolder(); holder.string = "one"; Entry<String, Integer> entry = new AbstractMapEntry<String, Integer>() { @Override public String getKey() { return holder.string; } @Override public Integer getValue() { return 1;
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 10:16:44 GMT 2024 - 5.1K bytes - Viewed (0) -
common-protos/k8s.io/api/coordination/v1/generated.proto
optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; // renewTime is a time when the current holder of a lease has last // updated the lease. // +optional optional k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; // leaseTransitions is the number of transitions of a lease between // holders. // +optional optional int32 leaseTransitions = 5;
Plain Text - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Mon Mar 11 18:43:24 GMT 2024 - 2.6K bytes - Viewed (0) -
licenses/go.starlark.net/LICENSE
documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Plain Text - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Thu Apr 22 22:59:25 GMT 2021 - 1.5K bytes - Viewed (0)