- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for WithDefault (0.21 sec)
-
platforms/software/dependency-management/src/scripts/process-log.groovy
println("Processing ${logFile} into directory ${processedDirectory}") int uniqueOpCount = 0 int uniqueExcludeCount = 0 Map<String, Counter> opCounters = [:].withDefault { new Counter(uniqueOpCount++) } Map<String, Counter> excludeCounters = [:].withDefault { new Counter(uniqueExcludeCount++) } class Counter { final int id Counter(int id) { this.id = id} int counter = -1 void inc() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.6K bytes - Viewed (0) -
staging/src/k8s.io/client-go/applyconfigurations/core/v1/limitrangeitem.go
b.Min = &value return b } // WithDefault sets the Default field in the declarative configuration to the given value // and returns the receiver, so that objects can be built by chaining "With" function invocations. // If called multiple times, the Default field is set to the value of the last call. func (b *LimitRangeItemApplyConfiguration) WithDefault(value v1.ResourceList) *LimitRangeItemApplyConfiguration {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 04 18:31:34 UTC 2021 - 4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/PolyglotProjectBuilder.groovy
@CompileStatic class PolyglotProjectBuilder { private final GradleDsl dsl private final TestFile targetDirectory private final Map<String, BuildFileBuilder> buildFiles = [:].withDefault { new BuildFileBuilder(it.toString()) } @Delegate private final BuildFileBuilder mainBuildFile PolyglotProjectBuilder(GradleDsl dsl, TestFile targetDirectory) { this.dsl = dsl
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/GroupSpec.groovy
*/ package org.gradle.integtests.fixtures.publish import org.gradle.test.fixtures.HttpRepository class GroupSpec { private final String groupId final Map<String, ModuleSpec> modules = [:].withDefault { new ModuleSpec(groupId, it) } GroupSpec(String name) { groupId = name } void module(String name, @DelegatesTo(value = ModuleSpec, strategy = Closure.DELEGATE_ONLY) Closure<Void> moduleSpec) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.6K bytes - Viewed (0) -
build-logic/profiling/src/main/kotlin/gradlebuild/jmh/tasks/JmhHTMLReport.kt
@get:OutputDirectory abstract val destination: DirectoryProperty @TaskAction fun render() { var first = true val benchmarks = mutableMapOf<String, MutableList<Pair<String, Int>>>().withDefault { mutableListOf() } csv.get().asFile.forEachLine { line -> if (first) { first = false } else { val tokens = line.replace("\"", "").split(",")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jul 07 13:12:26 UTC 2021 - 4.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/ModuleSpec.groovy
import org.gradle.test.fixtures.maven.MavenModule class ModuleSpec { private final String groupId private final String artifactId private final Map<String, ModuleVersionSpec> versions = [:].withDefault { new ModuleVersionSpec(groupId, artifactId, it) } private List<InteractionExpectation> metadataExpectations = [] ModuleSpec(String group, String name) { groupId = group artifactId = name
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/RemoteRepositorySpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/ExcludeJsonLogToCode.groovy
"brother", "deer", "waves", "advice", "acoustics", "nut", "store", "finger" ] private final Map<String, String> mappingCache = [:].withDefault { def size = mappingCache.size() size >WORDS.size() ? "word${size}" : WORDS[size] } /** * Converts an operation dumped as JSON into code which can be used to
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 4.9K bytes - Viewed (0) -
platforms/native/language-native/src/testFixtures/groovy/org/gradle/language/VariantContext.groovy
private VariantContext() { this([:]) } private VariantContext(Map<String, VariantDimension> dimensions) { this.dimensions = dimensions.withDefault { VariantDimension.missing(it) } } VariantDimension getBuildType() { return dimensions.get("buildType") } VariantDimension getOs() { return dimensions.get("os") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5.2K bytes - Viewed (0) -
testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/corefeature/ParallelDownloadsPerformanceTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 5.3K bytes - Viewed (0)