- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 86 for computeIfAbsent (0.21 sec)
-
maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/DefaultModelCache.java
public <T> T computeIfAbsent(String groupId, String artifactId, String version, String tag, Supplier<T> data) { return (T) computeIfAbsent(new GavCacheKey(groupId, artifactId, version, tag), data); } @Override @SuppressWarnings({"unchecked"}) public <T> T computeIfAbsent(Source path, String tag, Supplier<T> data) { return (T) computeIfAbsent(new SourceCacheKey(path, tag), data); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu May 02 15:10:38 UTC 2024 - 6.8K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java
if (pluginDeclaration != null) { pluginDeclarations.add(pluginDeclaration); } mojoIssues .computeIfAbsent(issueLocality, k -> new LinkedHashMap<>()) .computeIfAbsent(mojoInfo, k -> new LinkedHashSet<>()) .add(issue); } }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu May 23 12:25:04 UTC 2024 - 17.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/model/CalculatedValueCache.java
import java.util.function.Function; /** * A cache backed by calculated values. This map is thread-safe. */ public interface CalculatedValueCache<K, V> { /** * @see Map#computeIfAbsent(Object, Function) */ V computeIfAbsent(K key, Function<K, V> factory); /** * @see Map#clear() */ void clear();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 20:21:17 UTC 2024 - 1014 bytes - Viewed (0) -
analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/declarations/KotlinStandaloneDeclarationProvider.kt
private fun addToFacadeFileMap(file: KtFile) { if (!file.hasTopLevelCallables()) return index.facadeFileMap.computeIfAbsent(file.packageFqName) { mutableSetOf() }.add(file) } private fun addToScriptMap(script: KtScript) { index.scriptMap.computeIfAbsent(script.fqName) { mutableSetOf() }.add(script) }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Jun 06 17:44:50 UTC 2024 - 21.1K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelCache.java
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu May 02 15:10:38 UTC 2024 - 1.6K bytes - Viewed (0) -
subprojects/composite-builds/src/main/java/org/gradle/composite/internal/DefaultBuildTreeLocalComponentProvider.java
return originalComponents.computeIfAbsent(projectIdentifier, id -> localComponentCache.computeIfAbsent(projectState, localComponentProvider::getComponent)); } private LocalComponentGraphResolveState getLocalComponentWithForeignId(ProjectComponentIdentifier projectIdentifier) { return foreignIdentifiedComponents.computeIfAbsent(projectIdentifier, this::copyComponentWithForeignId); } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 20:21:17 UTC 2024 - 6.2K bytes - Viewed (0) -
testing/distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegritySpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.1K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/model/CalculatedValueContainerFactory.java
this.type = type; this.calculatedValueContainerFactory = calculatedValueContainerFactory; } @Override public V computeIfAbsent(K key, Function<K, V> factory) { CalculatedValue<V> value = cache.computeIfAbsent(key, k -> calculatedValueContainerFactory.create( Describables.of(k, type), context -> factory.apply(k)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 20:21:17 UTC 2024 - 4.3K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java
return allRepositories.computeIfAbsent(repository, DefaultRemoteRepository::new); } @Override public Node getNode(org.eclipse.aether.graph.DependencyNode node) { return getNode(node, false); } @Override public Node getNode(org.eclipse.aether.graph.DependencyNode node, boolean verbose) { return allNodes.computeIfAbsent(node, n -> new DefaultNode(this, n, verbose));
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 27.5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/types/ExternalPluginsInstrumentationTypeRegistry.java
} } private Set<String> computeAndCacheInstrumentedSuperTypes(String type, Set<String> visited) { // We intentionally avoid using computeIfAbsent, since ConcurrentHashMap doesn't allow map modifications in the computeIfAbsent map function. // The result is, that multiple threads could recalculate the same key multiple times, but that is not a problem in our case.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 25 10:00:18 UTC 2024 - 5.4K bytes - Viewed (0)