Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 91 for varargs (0.04 sec)

  1. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt

    import com.squareup.kotlinpoet.FileSpec
    import com.squareup.kotlinpoet.KModifier
    import com.squareup.kotlinpoet.PropertySpec
    import java.io.File
    import okio.FileSystem
    import okio.Path.Companion.toPath
    
    fun main(vararg args: String) {
      val data = loadIdnaMappingTableData()
      val file = generateMappingTableFile(data)
      file.writeTo(File(args[0]))
    }
    
    fun loadIdnaMappingTableData(): IdnaMappingTableData {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (1)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      override fun lookup(hostname: String): List<InetAddress> {
        requestedHosts.add(hostname)
        return hostAddresses[hostname] ?: throw UnknownHostException()
      }
    
      fun assertRequests(vararg expectedHosts: String?) {
        assertThat(requestedHosts).containsExactly(*expectedHosts)
        requestedHosts.clear()
      }
    
      /** Allocates and returns `count` fake IPv4 addresses like [255.0.0.100, 255.0.0.101].  */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. build-logic-settings/configuration-cache-compatibility/src/main/kotlin/gradlebuild.configuration-cache-compatibility.settings.gradle.kts

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    import org.gradle.api.internal.plugins.DslObject
    
    run {
    
        fun String.startsWithAnyOf(vararg prefixes: String): Boolean =
            prefixes.any { prefix -> startsWith(prefix) }
    
        fun Task.typeSimpleName(): String =
            DslObject(this).declaredType.simpleName
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Jan 15 16:07:38 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicTrustRootIndex.kt

    import java.security.cert.X509Certificate
    import javax.security.auth.x500.X500Principal
    
    /** A simple index that of trusted root certificates that have been loaded into memory. */
    class BasicTrustRootIndex(
      vararg caCerts: X509Certificate,
    ) : TrustRootIndex {
      private val subjectToCaCerts: Map<X500Principal, Set<X509Certificate>>
    
      init {
        val map = mutableMapOf<X500Principal, MutableSet<X509Certificate>>()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

            if (!(extensionCandidate || ktFunction.valueParameters.size == paramCount)) {
                return@collectDescendantsOfType false
            }
            val isVarargs = Modifier.isVarArgs(method.modifiers)
    
            // Parameter type check
            method.parameterTypes
                .asSequence()
                // Drop the receiver if present
                .drop(if (extensionCandidate) 1 else 0)
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Jul 08 07:02:19 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  6. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/util/KotlinSourceParser.kt

            }
        }
    
        private
        val messageCollector: MessageCollector
            get() = PrintingMessageCollector(System.out, MessageRenderer.PLAIN_RELATIVE_PATHS, false)
    
        fun <T : Any> mapParsedKotlinFiles(vararg sourceRoots: File, block: (KtFile) -> T): List<T> =
            withParsedKotlinSource(sourceRoots.toList()) { ktFiles ->
                ktFiles.map(block)
            }
    
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Sep 16 08:22:33 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/reflect/Invokable.java

          return !(isFinal()
              || isPrivate()
              || isStatic()
              || Modifier.isFinal(getDeclaringClass().getModifiers()));
        }
    
        @Override
        public final boolean isVarArgs() {
          return method.isVarArgs();
        }
      }
    
      static class ConstructorInvokable<T> extends Invokable<T, T> {
    
        final Constructor<?> constructor;
    
        ConstructorInvokable(Constructor<?> constructor) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  8. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.cache-miss-monitor.gradle.kts

        ) || isBuildCommitDistribution
    
    val Project.isBuildCommitDistribution: Boolean
        get() = providers.gradleProperty("buildCommitDistribution").map { it.toBoolean() }.orElse(false).get()
    
    
    fun Project.isInBuild(vararg buildTypeIds: String) = providers.environmentVariable("BUILD_TYPE_ID").orNull?.let { currentBuildTypeId ->
        buildTypeIds.any { currentBuildTypeId.endsWith(it) }
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Fri Apr 11 20:57:49 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/RecordingExecutor.kt

      override fun execute(command: Runnable) {
        if (shutdown) throw RejectedExecutionException()
        calls.add(command as RealCall.AsyncCall)
      }
    
      fun assertJobs(vararg expectedUrls: String) {
        val actualUrls = calls.map { it.request.url.toString() }
        assertThat(actualUrls).containsExactly(*expectedUrls)
      }
    
      fun finishJob(url: String) {
        val i = calls.iterator()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Oct 06 18:34:01 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  10. okcurl/src/test/kotlin/okhttp3/curl/MainTest.kt

            "http://example.com",
          ).createRequest()
        assertThat(request.header("If-Modified-Since")).isEqualTo(
          "Mon, 18 Aug 2014 15:16:06 GMT",
        )
      }
    
      companion object {
        fun fromArgs(vararg args: String): Main =
          Main().apply {
            parse(args.toList())
          }
    
        private fun bodyAsString(body: RequestBody?): String =
          try {
            val buffer = Buffer()
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.3K bytes
    - Viewed (0)
Back to top