- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 178 for computeIfAbsent (0.5 sec)
-
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/local/model/DefaultLocalComponentGraphResolveState.java
Transformer<LocalComponentArtifactMetadata, LocalComponentArtifactMetadata> cachedTransformer = oldArtifact -> transformedArtifacts.computeIfAbsent(oldArtifact, transformer::transform); LocalComponentGraphResolveMetadata originalMetadata = getMetadata(); LocalComponentGraphResolveMetadata copiedMetadata = new LocalComponentGraphResolveMetadata(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 20:25:36 UTC 2024 - 20.3K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleMappingDelegate.java
} private void addMojoExecution( Map<Integer, List<MojoExecution>> phaseBindings, MojoExecution mojoExecution, int priority) { List<MojoExecution> mojoExecutions = phaseBindings.computeIfAbsent(priority, k -> new ArrayList<>()); mojoExecutions.add(mojoExecution); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Jan 10 12:55:54 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/models/ProjectStateStore.kt
} return readValue(key, address) } private fun loadOrCreateAddress(key: K, creator: () -> V): BlockAddress { val valueContainer = currentValues.computeIfAbsent(key) { k -> createContainer(k, creator) } // Calculate the value after adding the entry to the map, so that the value container can take care of thread synchronization
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 6.3K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java
public void flush() { descriptors.clear(); } public Key createKey(Plugin plugin, List<RemoteRepository> repositories, RepositorySystemSession session) { return keys.computeIfAbsent(new CacheKey(plugin, repositories, session), k -> k); } public PluginDescriptor get(Key cacheKey) { return clone(descriptors.get(cacheKey)); } @Override
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 28 23:31:49 UTC 2024 - 6K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/comparison/ExhaustiveLinesSearcher.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 6.5K bytes - Viewed (0) -
testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/DependencyTree.groovy
DependencyTree calculateClassDependencies(int project, int first, int last) { (first..last).each { classToproject.put(it, project) placeNode(it, CLASSES_ON_LEVEL, classDependencyTrees.computeIfAbsent(project) {[]}, parentToChildClassIds) } this } DependencyTree calculateProjectDependencies() { (0..classDependencyTrees.size() - 1).each {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 7K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java
return projects == null ? null : map(projects, this::getProject); } @Override public Project getProject(MavenProject project) { return allProjects.computeIfAbsent(project.getId(), id -> new DefaultProject(this, project)); } @Override public List<ArtifactRepository> toArtifactRepositories(List<RemoteRepository> repositories) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu May 16 08:45:24 UTC 2024 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/CodeGenerator.kt
targetTypesOf(accessorSpec.name).add(accessorSpec.receiver) private fun targetTypesOf(accessorNameSpec: AccessorNameSpec): HashSet<TypeAccessibility.Accessible> = targetTypesByName.computeIfAbsent(accessorNameSpec) { hashSetOf() } } internal fun extensionAccessor(spec: TypedAccessorSpec): String = spec.run { when (type) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 9.5K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java
* @param supplier the supplier will compute the new value * @return the session data associated with the key */ @Nullable <T> T computeIfAbsent(@Nonnull Key<T> key, @Nonnull Supplier<T> supplier); /** * Create a key using the given class as an identifier and as the type of the object. */ static <T> Key<T> key(Class<T> clazz) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Feb 28 23:31:09 UTC 2024 - 4.7K bytes - Viewed (0) -
platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/BindingsBackedCodec.kt
NULL_VALUE -> null else -> bindings[tag].decoding.run { decode() } } private fun taggedEncodingFor(type: Class<*>): TaggedEncoding = encodings.computeIfAbsent(type, ::computeEncoding) private fun computeEncoding(type: Class<*>): TaggedEncoding { for (binding in bindings) { val encoding = binding.encodingForType(type)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 18:56:44 UTC 2024 - 6K bytes - Viewed (0)