Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for KotlinClosure3 (0.16 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/GroovyInteroperabilityTest.kt

        @Test
        fun `can adapt ternary function using KotlinClosure3`() {
    
            fun closure(function: (String, String, String) -> String) = KotlinClosure3(function)
    
            assertEquals(
                "foobarbaz",
                closure { x, y, z -> x + y + z }.call("foo", "bar", "baz")
            )
        }
    
        @Test
        fun `can adapt ternary null receiving function using KotlinClosure3`() {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/GroovyInteroperability.kt

     * @param function the function to be adapted.
     * @param owner optional owner of the Closure.
     * @param thisObject optional _this Object_ of the Closure.
     *
     * @see [Closure]
     */
    class KotlinClosure3<in T : Any?, in U : Any?, in V : Any?, R : Any>(
        val function: (T, U, V) -> R?,
        owner: Any? = null,
        thisObject: Any? = null
    ) : Closure<R?>(owner, thisObject) {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. testing/architecture-test/src/changes/archunit-store/public-api-methods-return-allowed-types.txt

    Method <org.gradle.kotlin.dsl.KotlinClosure3.getFunction()> has arguments/return type kotlin.jvm.functions.Function3 that is not Gradle public API or primitive or built-in JDK classes or Kotlin classes in (GroovyInteroperability.kt:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 12:21:31 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  4. testing/architecture-test/src/changes/archunit-store/public-api-mutable-properties.txt

    Method <org.gradle.kotlin.dsl.KotlinClosure2.getFunction()> does not have raw return type assignable to org.gradle.api.provider.Provider in (GroovyInteroperability.kt:0)
    Method <org.gradle.kotlin.dsl.KotlinClosure3.getFunction()> does not have raw return type assignable to org.gradle.api.provider.Provider in (GroovyInteroperability.kt:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 22:42:49 UTC 2024
    - 160.5K bytes
    - Viewed (0)
Back to top