- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 279 for Lambda1 (0.11 sec)
-
android/guava/src/com/google/common/base/Functions.java
} @Override public String toString() { return "Functions.toStringFunction()"; } } /** * Returns the identity function. * * <p><b>Discouraged:</b> Prefer using a lambda like {@code v -> v}, which is shorter and often * more readable. */ // implementation is "fully variant"; E has become a "pass-through" type @SuppressWarnings("unchecked")
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 14.1K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/prettyPrintResults.kt
recurseDeeper(current.rhs) appendLine() appendIndented(")") } is FunctionArgument.Lambda -> { append("FunctionArgument.Lambda [${source()}] (\n") appendNextIndented("block = ") recurseDeeper(current.block) appendLine() appendIndented(")") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 22:06:18 UTC 2024 - 10.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/normalization/KotlinApiClassExtractorTest.kt
return "bar" } """, { assertThat(it.instantiateAndCall("foo"), equalTo("bar")) } ).assertSameApi() } // test throws until we can detect lambdas in inline functions and treat them as ABI @Test(expected = CompileAvoidanceException::class) fun `changes to inline method bodies change generated API class`() { givenChangingClass( "Foo",
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 19:59:56 UTC 2023 - 12K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/OverloadResolutionTest.kt
import kotlin.test.Test import kotlin.test.assertEquals object OverloadResolutionTest { @Test fun `function overloads with and without configure lambda are disambiguated`() { val schema = schemaFromTypes(MyTopLevelReceiver::class, listOf(MyTopLevelReceiver::class)) val code = """ addSomething(1) addSomething(1) { }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 10:08:03 UTC 2024 - 2.3K bytes - Viewed (0) -
cmd/config-current.go
configLogIf(ctx, fmt.Errorf("Unable to initialize notification target(s): %w", err)) } bootstrapTraceMsg("initialize the lambda targets") globalLambdaTargetList, err = lambda.FetchEnabledTargets(GlobalContext, s, transport) if err != nil { configLogIf(ctx, fmt.Errorf("Unable to initialize lambda target(s): %w", err)) } bootstrapTraceMsg("applying the dynamic configuration") // Apply dynamic config values
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu May 30 08:14:58 UTC 2024 - 30.8K bytes - Viewed (0) -
platforms/core-runtime/functional/src/main/java/org/gradle/internal/time/TimestampSuppliers.java
*/ public static Supplier<Long> inThePast(int value, TimeUnit timeUnit) { // This needs to be an anonymous inner class instead of a lambda for configuration cache compatibility return new Supplier<Long>() { @Override public Long get() { return Math.max(0, System.currentTimeMillis() - timeUnit.toMillis(value));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:22:02 UTC 2023 - 1.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultListProperty.java
* limitations under the License. */ package org.gradle.api.internal.provider; import com.google.common.collect.ImmutableCollection; import com.google.common.collect.ImmutableList; import org.gradle.api.internal.lambdas.SerializableLambdas.SerializableSupplier; import org.gradle.api.provider.ListProperty; import org.gradle.api.provider.Provider; import org.gradle.internal.Cast; import javax.annotation.Nullable; import java.util.List;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 19:56:59 UTC 2024 - 2.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultSetProperty.java
* limitations under the License. */ package org.gradle.api.internal.provider; import com.google.common.collect.ImmutableCollection; import com.google.common.collect.ImmutableSet; import org.gradle.api.internal.lambdas.SerializableLambdas.SerializableSupplier; import org.gradle.api.provider.Provider; import org.gradle.api.provider.SetProperty; import org.gradle.internal.Cast; import javax.annotation.Nullable;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 22:58:03 UTC 2024 - 3.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/internal/classpath/DefaultCachedClasspathTransformerTest.groovy
def "class can include only serializable lambda"() { given: def cl = transformAndLoad(ClassWithSerializableLambda, ClassWithSerializableLambda.SerializableThing) expect: def original = cl.thing(123) def result = recreate(original).call() result == "123" } def "interface can include only serializable lambda"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 11 09:51:15 UTC 2024 - 20.8K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/DomResolutionTest.kt
val resolver = tracingCodeResolver() val topLevelBlock = parseAsTopLevelBlock( """ addAndConfigure("correct") { } addAndConfigure("lambda missing") addAndConfigure("incorrect signature", 1) { number = 123
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 13:47:09 UTC 2024 - 9.3K bytes - Viewed (0)