- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for varargs (0.07 sec)
-
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/TypeMetaData.java
public int getArrayDimensions() { return arrayDimensions + (varargs ? 1 : 0); } public TypeMetaData setArrayDimensions(int arrayDimensions) { this.arrayDimensions = arrayDimensions; return this; } public boolean isVarargs() { return varargs; } public TypeMetaData setVarargs() { this.varargs = true; return this; }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java
assertTrue("addAll(n, containsNull) should return true", getList().addAll(0, containsNull)); /* * We need (E) to force interpretation of null as the single element of a * varargs array, not the array itself */ expectAdded(0, (E) null); } @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX) @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 6.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java
assertTrue("addAll(n, containsNull) should return true", getList().addAll(0, containsNull)); /* * We need (E) to force interpretation of null as the single element of a * varargs array, not the array itself */ expectAdded(0, (E) null); } @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX) @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 20:00:30 UTC 2024 - 6.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionAddAllTester.java
assertTrue("addAll(containsNull) should return true", collection.addAll(containsNull)); /* * We need (E) to force interpretation of null as the single element of a * varargs array, not the array itself */ expectAdded((E) null); } @CollectionFeature.Require(value = SUPPORTS_ADD, absent = ALLOWS_NULL_VALUES) public void testAddAll_nullUnsupported() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 7.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RecordedResponse.kt
).isTrue() } fun assertFailure(vararg messages: String) = apply { assertThat(failure, "No failure found").isNotNull() assertThat(messages).contains(failure!!.message) } fun assertFailureMatches(vararg patterns: String) = apply { val message = failure!!.message!! assertThat(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-dsl-upstream-candidates.kt
val out = ByteArrayOutputStream() exec { isIgnoreExitValue = ignoreExitValue commandLine(*args) standardOutput = out this.workingDir = workingDir } return out.toString().trim() } fun ExecOperations.execAndGetStdoutIgnoringError(vararg args: String) = execAndGetStdout(File("."), true, *args)
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Sep 24 21:39:46 UTC 2024 - 1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt
} private fun createSocketWithEnabledProtocols(vararg tlsVersions: TlsVersion): SSLSocket { return (handshakeCertificates.sslSocketFactory().createSocket() as SSLSocket).apply { enabledProtocols = javaNames(*tlsVersions) } } private fun assertEnabledProtocols( socket: SSLSocket, vararg required: TlsVersion, ) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingCookieJar.kt
private val responseCookies: Deque<List<Cookie>> = ArrayDeque() fun enqueueRequestCookies(vararg cookies: Cookie) { requestCookies.add(cookies.toList()) } fun takeResponseCookies(): List<Cookie> { return responseCookies.removeFirst() } fun assertResponseCookies(vararg cookies: String?) { assertThat(takeResponseCookies().map(Cookie::toString)).containsExactly(*cookies) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/TestTls13Request.kt
try { for (url in urls) { sendRequest(client, url) } } finally { client.dispatcher.executorService.shutdownNow() client.connectionPool.evictAll() } } private fun buildClient(vararg specs: ConnectionSpec): OkHttpClient { return OkHttpClient.Builder() .connectionSpecs(listOf(*specs)) .build() } private fun sendRequest( client: OkHttpClient, url: String, ) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt
* strict than the others. */ fun escapeForUri(vararg codePoints: Int) = apply { uriEscapedCodePoints.append(String(*codePoints)) } /** * Configure code points to be stripped in conversion to `java.net.URI`. That class is more * strict than the others. */ fun stripForUri(vararg codePoints: Int) = apply { uriStrippedCodePoints.append(String(*codePoints))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.5K bytes - Viewed (0)