Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 150 for TLambda (0.28 sec)

  1. cmd/object-lambda-handlers.go

    			return nil
    		}
    		return apiErr
    	}
    	return nil
    }
    
    // GetObjectLamdbaHandler - GET Object with transformed data via lambda functions
    // ----------
    // This implementation of the GET operation applies lambda functions and returns the
    // response generated via the lambda functions. To use this API, you must have READ access
    // to the object.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/LambdaTest.kt

        }
    
        @Test
        fun `if a lambda is optional, a lambda is accepted`() {
            schema.resolve("lambdaOptional(0) { }").isSuccessful()
        }
    
        @Test
        fun `if a lambda is not allowed, missing lambda is ok`() {
            schema.resolve("lambdaNotAllowed(0)").isSuccessful()
        }
    
        @Test
        fun `if a lambda is not allowed, a lambda is reported as an error`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 26 12:27:49 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/impl/SerializedLambdaQueries.java

        }
    
        public static Optional<SerializedLambda> serializedLambdaFor(@Nullable Object lambda) {
            if (!(lambda instanceof Serializable)) {
                return Optional.empty();
            }
            for (Class<?> lambdaClass = lambda.getClass(); lambdaClass != null; lambdaClass = lambdaClass.getSuperclass()) {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 20:38:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializerTest.kt

                loaded.get(),
                equalTo("42")
            )
        }
    
        @Test
        fun `can serialize Java lambda with Property`() {
            assertProviderRoundtrip(
                propertyOf("42"),
                "42"
            )
        }
    
        @Test
        fun `can serialize Java lambda with ListProperty`() {
            assertProviderRoundtrip(
                listPropertyOf(1, 2, 3),
                listOf(1, 2, 3)
            )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/JavaPluginImplementation.groovy

                    public void apply(Project project) {
                        // Inside a lambda body
                        lambda("apply").run();
    
                        project.getTasks().register("thing", t -> {
                            t.doLast(new Action<Task>() {
                                public void execute(Task t) {
                                    lambda("task").run();
                                }
                            });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/FunctionCallResolver.kt

            }
    
            val lambda = call.args.filterIsInstance<FunctionArgument.Lambda>().singleOrNull()
            val (expectsConfigureLambda, requiresConfigureLambda) = semantics.configureBlockRequirement.run { allows to requires }
            if (expectsConfigureLambda) {
                if (lambda != null) {
                    withScope(AnalysisScope(currentScopes.last(), configureReceiver, lambda)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 14:27:23 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/SerializedLambdaParametersCheckingCodec.kt

    import java.lang.invoke.SerializedLambda
    import kotlin.reflect.KClass
    
    
    /**
     * In encoding a [SerializedLambda], this codec checks if the lambda parameter types are allowed in the configuration cache.
     * If some of them are not, it logs a problem.
     *
     * The lambda is encoded straightforwardly as a bean, and, upon decoding, the bean is expected to be the [SerializedLambda].
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/ConfigureLambdaHandler.kt

        override fun produceValueCaptor(lambdaType: KType): ConfigureLambdaHandler.ValueCaptor {
            lateinit var value: Any
            val lambda: Function1<Any, Unit> = { value = it }
            return ConfigureLambdaHandler.ValueCaptor(lambda, lazy { value })
        }
    
        private
        fun isConfigureLambdaType(maybeLambdaType: KType) = maybeLambdaType.isSubtypeOf(typeOf<Function1<*, Unit>>())
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 10:53:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/schemaBuidler/FunctionExtractorTest.kt

        fun `adding function may have a configuring lambda if it returns the added value`() {
            val schema = schemaFromTypes(ReceiverOne::class, listOf(ReceiverOne::class))
            val function = schema.dataClassesByFqName.values.single().memberFunctions.single()
            assertIs<FunctionSemantics.AddAndConfigure>(function.semantics)
        }
    
        @Test
        fun `adding function may not have a configuring lambda if it returns Unit`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheLambdaIntegrationTest.groovy

    class ConfigurationCacheLambdaIntegrationTest extends AbstractConfigurationCacheIntegrationTest {
    
        def fixture = new ConfigurationCacheFixture(this)
    
        def "restores task fields whose value is a #kind Java lambda"() {
            given:
            file("buildSrc/src/main/java/my/LambdaTask.java").tap {
                parentFile.mkdirs()
                text = """
                    package my;
    
                    import org.gradle.api.*;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top