- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 185 for computeIfAbsent (0.19 sec)
-
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) -
platforms/jvm/java-compiler-plugin/src/main/java/org/gradle/internal/compiler/java/listeners/classnames/ClassNameCollector.java
registerMapping(key, pkgInfo); } } private Optional<String> findRelativePath(File asSourceFile) { return relativePaths.computeIfAbsent(asSourceFile, relativize); } private String normalizeName(TypeElement typeElement) { String symbol = typeElement.getQualifiedName().toString(); if (symbol.endsWith("module-info")) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 13:06:26 UTC 2023 - 4.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/CallInterceptorRegistry.java
} public static CallSiteDecorator getGroovyCallDecorator(BytecodeInterceptorFilter interceptorFilter) { return groovyDecorators.computeIfAbsent(interceptorFilter, key -> new DefaultCallSiteDecorator(currentGroovyCallInterceptorSet.getCallInterceptors(interceptorFilter))); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Nov 24 13:33:59 UTC 2023 - 5K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/utils/ThreadLocalDelegate.kt
private val map = ConcurrentHashMap<Long, V>() @Suppress("NOTHING_TO_INLINE") inline operator fun getValue(thisRef: Any?, property: KProperty<*>): V = map.computeIfAbsent(Thread.currentThread().id) { init() } } internal fun <V : Any> threadLocal(init: () -> V): ThreadLocalValue<V> =
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Sep 15 09:32:30 UTC 2021 - 766 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) -
maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java
public Map getPluginContext(PluginDescriptor plugin, MavenProject project) { Map<String, Map> pluginContextsByKey = pluginContextsByProjectAndPluginKey.computeIfAbsent(project.getId(), k -> new HashMap<>()); return pluginContextsByKey.computeIfAbsent(plugin.getPluginLookupKey(), k -> new HashMap<>()); } public void setFailureBehavior(String failureBehavior) { if (failureBehavior == null) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Sep 22 06:02:04 UTC 2023 - 5.6K 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) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheAwareLocalComponentCache.kt
import java.util.function.Function class ConfigurationCacheAwareLocalComponentCache( private val cache: BuildTreeConfigurationCache ) : LocalComponentCache { override fun computeIfAbsent(project: ProjectState, factory: Function<ProjectState, LocalComponentGraphResolveState>): LocalComponentGraphResolveState { return cache.loadOrCreateProjectMetadata(project.identityPath) { factory.apply(project)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/ResolveState.java
public ComponentMetaDataResolver getComponentMetadataResolver() { return metaDataResolver; } private ModuleResolveState getModule(ModuleIdentifier id, boolean rootModule) { return modules.computeIfAbsent(id, mid -> new ModuleResolveState(idGenerator, id, metaDataResolver, attributesFactory, versionComparator, versionParser, selectorStateResolver, resolveOptimizations, rootModule, conflictResolution)); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 14:19:34 UTC 2024 - 16.7K bytes - Viewed (0) -
analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/project/structure/PluginStructureProvider.kt
} private fun getOrCalculatePluginDescriptor( designation: PluginDesignation, ): RawPluginDescriptor = pluginDescriptorsCache.computeIfAbsent(designation) { val descriptor = RawPluginDescriptor() PluginXmlPathResolver.DEFAULT_PATH_RESOLVER.resolvePath( readContext = ReadContext,
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 22:09:27 UTC 2024 - 7.3K bytes - Viewed (0)