- Sort Score
- Num 10 results
- Language All
Results 701 - 710 of 1,002 for Builder (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/math/QuantilesTest.java
private static ImmutableList<Double> generatePseudorandomDataset() { Random random = new Random(2211275185798966364L); ImmutableList.Builder<Double> largeDatasetBuilder = ImmutableList.builder(); for (int i = 0; i < PSEUDORANDOM_DATASET_SIZE; i++) { largeDatasetBuilder.add(random.nextGaussian()); } return largeDatasetBuilder.build(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 29.9K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/QuantilesTest.java
private static ImmutableList<Double> generatePseudorandomDataset() { Random random = new Random(2211275185798966364L); ImmutableList.Builder<Double> largeDatasetBuilder = ImmutableList.builder(); for (int i = 0; i < PSEUDORANDOM_DATASET_SIZE; i++) { largeDatasetBuilder.add(random.nextGaussian()); } return largeDatasetBuilder.build(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 29.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CorrettoTest.kt
assumeNetwork() val request = Request.Builder().url("https://mozilla.org/robots.txt").build() client.newCall(request).execute().use { assertThat(it.protocol).isEqualTo(Protocol.HTTP_2) assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3) } } @Test @Disabled fun testGoogle() { assumeNetwork() val request = Request.Builder().url("https://google.com/robots.txt").build()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2.1K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/ConfigureTimeouts.java
public ConfigureTimeouts() throws Exception { client = new OkHttpClient.Builder() .connectTimeout(5, TimeUnit.SECONDS) .writeTimeout(5, TimeUnit.SECONDS) .readTimeout(5, TimeUnit.SECONDS) .callTimeout(10, TimeUnit.SECONDS) .build(); } public void run() throws Exception { Request request = new Request.Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Sep 28 18:00:26 GMT 2019 - 1.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/ClassPathUtil.java
* System#getProperty system property}. */ // TODO(b/65488446): Make this a public API. static URL[] parseJavaClassPath() { ImmutableList.Builder<URL> urls = ImmutableList.builder(); for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) { try { try { urls.add(new File(entry).toURI().toURL());
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 2.5K bytes - Click Count (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt
import okhttp3.internal.http2.Settings import okio.Buffer class MockResponse : Cloneable { @set:JvmName("status") var status: String = "" private var headersBuilder = Headers.Builder() private var trailersBuilder = Headers.Builder() @set:JvmName("headers") var headers: Headers get() = headersBuilder.build() set(value) { this.headersBuilder = value.newBuilder() }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat May 10 11:15:14 GMT 2025 - 7.1K bytes - Click Count (1) -
samples/guide/src/main/java/okhttp3/recipes/LoggingInterceptors.java
private static final Logger logger = Logger.getLogger(LoggingInterceptors.class.getName()); private final OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(new LoggingInterceptor()) .build(); public void run() throws Exception { Request request = new Request.Builder() .url("https://publicobject.com/helloworld.txt") .build(); Response response = client.newCall(request).execute();
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jan 01 15:55:32 GMT 2016 - 2K bytes - Click Count (0) -
okhttp/src/jvmTest/java/okhttp3/CallJavaTest.java
OkHttpClientTestRule clientTestRule = new OkHttpClientTestRule(); private OkHttpClient client = clientTestRule.newClient(); @Test public void tagsSeededFromRequest() { Request request = new Request.Builder() .url(HttpUrl.get("https://square.com/")) .tag(Integer.class, 5) .tag(String.class, "hello") .build(); Call call = client.newCall(request); assertEquals(5, call.tag(Integer.class));
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Oct 26 14:54:46 GMT 2025 - 1.7K bytes - Click Count (0) -
misc/go_android_exec/exitcode_test.go
//go:build !(windows || js || wasip1) package main import ( "regexp" "strings" "testing" ) func TestExitCodeFilter(t *testing.T) { // Write text to the filter one character at a time. var out strings.Builder f, exitStr := newExitCodeFilter(&out) // Embed a "fake" exit code in the middle to check that we don't get caught on it. pre := "abc" + exitStr + "123def" text := pre + exitStr + `1` for i := 0; i < len(text); i++ {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed May 03 14:54:58 GMT 2023 - 2.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java
// GWT doesn't consistently overflow values to make them 32-bit, so we need to force it. return value & 0xffffffff; } static { ImmutableSet.Builder<Integer> testIntsBuilder = ImmutableSet.builder(); ImmutableSet.Builder<Long> testLongsBuilder = ImmutableSet.builder(); for (int i = -3; i <= 3; i++) { testIntsBuilder .add(i) .add(force32(Integer.MIN_VALUE + i))
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 11 20:45:32 GMT 2025 - 9.6K bytes - Click Count (0)