- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 2,600 for instances (0.05 seconds)
-
src/main/java/org/codelibs/fess/suggest/converter/ReadingConverterChain.java
import java.util.Set; /** * A chain of {@link ReadingConverter} implementations that applies each converter in sequence to generate possible reading variations of a given text. * It maintains a list of ReadingConverter instances and iterates through them, applying each converter to the input text and accumulating the results. * The chain stops processing when the maximum number of readings is reached. */Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Wed Dec 31 05:38:07 GMT 2025 - 3.8K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/ResponseJvmTest.kt
assertFailsWith<IllegalStateException> { response.peekBody(3) } } /** * Returns a new response body that refuses to be read once it has been closed. This is true of * most [BufferedSource] instances, but not of [Buffer]. */ private fun responseBody(content: String): ResponseBody { val data = Buffer().writeUtf8(content) val source: Source = object : Source { var closed = false
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jul 07 18:57:05 GMT 2025 - 2.8K bytes - Click Count (0) -
fastapi/.agents/skills/fastapi/references/streaming.md
yield Item(name="Plumbus", price=32.99) yield Item(name="Portal Gun", price=999.99) ``` For full control over SSE fields (`event`, `id`, `retry`, `comment`), yield `ServerSentEvent` instances: ```python from collections.abc import AsyncIterable from fastapi import FastAPI from fastapi.sse import EventSourceResponse, ServerSentEvent app = FastAPI()
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 10:05:57 GMT 2026 - 2.5K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
for (queue in TaskRunner.INSTANCE.activeQueues()) { // We wait at most 1 second, so we don't ever turn multiple lost threads into // a test timeout failure. val waitTime = (entryTime + 1_000_000_000L - System.nanoTime()) if (!queue.idleLatch().await(waitTime, TimeUnit.NANOSECONDS)) { TaskRunner.INSTANCE.withLock { TaskRunner.INSTANCE.cancelAll() }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 10.8K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/testing/TearDown.java
* * <p>tl4j details: For backwards compatibility, {@code junit3.TearDownTestCase} currently does * not fail a test when an exception is thrown from one of its {@link TearDown} instances, but * this is subject to change. Also, {@code junit4.TearDownTestCase} will. * * @throws Exception for any reason. {@code TearDownTestCase} ensures that any exception thrownCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 1.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/com/SmbComTreeDisconnectTest.java
// Given SmbComTreeDisconnect instance1 = new SmbComTreeDisconnect(config); SmbComTreeDisconnect instance2 = new SmbComTreeDisconnect(mockConfig); // Then assertNotSame(instance1, instance2); assertEquals(instance1.getCommand(), instance2.getCommand()); assertNotEquals(instance1.toString(), instance2.toString()); // Different object references in toString }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.5K bytes - Click Count (0) -
mockwebserver/README.md
assertEquals("/v1/chat/messages/3", request3.getUrl().encodedPath()); // Shut down the server. Instances cannot be reused. server.close(); } ``` ### Kotlin ```kotlin fun test() { // Create a MockWebServer. These are lean enough that you can create a new // instance for every unit test. val server = MockWebServer() // Schedule some responses.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 8.1K bytes - Click Count (0) -
samples/simple-client/src/main/java/okhttp3/sample/OkHttpContributors.java
for (Contributor contributor : contributors) { System.out.println(contributor.login + ": " + contributor.contributions); } } } private OkHttpContributors() { // No instances. }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 2.2K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AbstractListeningExecutorService.java
import java.util.concurrent.RunnableFuture; import org.jspecify.annotations.Nullable; /** * Abstract {@link ListeningExecutorService} implementation that creates {@link ListenableFuture} * instances for each {@link Runnable} and {@link Callable} submitted to it. These tasks are run * with the abstract {@link #execute execute(Runnable)} method. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 17:47:46 GMT 2025 - 3K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java
import com.google.common.annotations.GwtCompatible; import com.google.common.collect.testing.SampleElements.Chars; import java.util.List; import org.jspecify.annotations.NullMarked; /** * Generates {@code List<Character>} instances for test suites. * * @author Kevin Bourrillion * @author Louis Wasserman */ @GwtCompatible @NullMarked public abstract class TestCharacterListGenerator implements TestListGenerator<Character> { @OverrideCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 14:50:24 GMT 2024 - 1.8K bytes - Click Count (0)