- Sort Score
- Num 10 results
- Language All
Results 1081 - 1090 of 2,123 for instanceof (0.48 seconds)
-
guava/src/com/google/common/collect/MapMaker.java
import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import org.jspecify.annotations.Nullable; /** * A builder of {@link ConcurrentMap} instances that can have keys or values automatically wrapped * in {@linkplain WeakReference weak} references. * * <p>Usage example: * * {@snippet : * ConcurrentMap<Request, Stopwatch> timers = new MapMaker()Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 12.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java
ListenableFuture<?> runnableFuture = e.submit(runnable); assertThat(runnableFuture).isInstanceOf(TrustedListenableFutureTask.class); assertTrue(runnableFuture.isDone()); assertTrue(runnable.run); ListenableFuture<String> callableFuture = e.submit(new TestCallable()); assertThat(callableFuture).isInstanceOf(TrustedListenableFutureTask.class); assertTrue(callableFuture.isDone());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/AbstractListeningExecutorServiceTest.java
ListenableFuture<?> runnableFuture = e.submit(runnable); assertThat(runnableFuture).isInstanceOf(TrustedListenableFutureTask.class); assertTrue(runnableFuture.isDone()); assertTrue(runnable.run); ListenableFuture<String> callableFuture = e.submit(new TestCallable()); assertThat(callableFuture).isInstanceOf(TrustedListenableFutureTask.class); assertTrue(callableFuture.isDone());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 3.4K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/Graph.java
* ImmutableGraph<Integer> immutableGraph = ImmutableGraph.copyOf(graph); * } * * <p>Instances of {@link ImmutableGraph} do not implement {@link MutableGraph} (obviously!) and are * contractually guaranteed to be unmodifiable and thread-safe. * * <p>The Guava User Guide has <a * href="https://github.com/google/guava/wiki/GraphsExplained#building-graph-instances">more * information on (and examples of) building graphs</a>. *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 13.6K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/ValueGraphBuilder.java
import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.graph.Graphs.checkNonNegative; import com.google.errorprone.annotations.CanIgnoreReturnValue; /** * A builder for constructing instances of {@link MutableValueGraph} or {@link ImmutableValueGraph} * with user-defined properties. * * <p>A {@code ValueGraph} built by this class has the following default properties: * * <ul>Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 7.8K bytes - Click Count (0) -
gorm.go
Logger: db.Logger.LogMode(logger.Info), }) } // Set store value with key into current db instance's context func (db *DB) Set(key string, value interface{}) *DB { tx := db.getInstance() tx.Statement.Settings.Store(key, value) return tx } // Get get value with key from current db instance's context func (db *DB) Get(key string) (interface{}, bool) { return db.Statement.Settings.Load(key) }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sat Mar 21 11:35:55 GMT 2026 - 13.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/TestThread.java
throws Exception { checkNotNull(expected); checkNotNull(methodName); checkNotNull(arguments); sendRequest(methodName, arguments); assertThat(getResponse(methodName).getThrowable()).isInstanceOf(expected); } /** * Causes this thread to call the named method, and asserts that this thread becomes blocked on * the lock-like object. The lock-like object must have a method equivalent to {@linkCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 11.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt
client.newCall(newRequest("http://a/1")).enqueue(callback) executor.assertJobs("http://a/1") assertThat(eventRecorder.eventSequence).none { it.isInstanceOf<DispatcherQueueStart>() } assertThat(eventRecorder.eventSequence).none { it.isInstanceOf<DispatcherQueueEnd>() } } @Test fun maxRequestsEnforced() { dispatcher.maxRequests = 3 client.newCall(newRequest("http://a/1")).enqueue(callback)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 15.8K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheBuilder.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 51.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
List<Future<String>> results; results = service.invokeAll(callables); assertThat(getOnlyElement(results)).isInstanceOf(TrustedListenableFutureTask.class); results = service.invokeAll(callables, 1, SECONDS); assertThat(getOnlyElement(results)).isInstanceOf(TrustedListenableFutureTask.class); /* * TODO(cpovirk): move ForwardingTestCase somewhere common, and use it to
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 26.1K bytes - Click Count (0)