- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 105 for computeIfAbsent (0.48 sec)
-
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-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) -
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) -
platforms/core-configuration/declarative-dsl-provider/src/main/kotlin/org/gradle/internal/declarativedsl/project/schemaFromGradleExtensions.kt
} private class CachedHierarchyAnnotationChecker(private val annotationType: KClass<out Annotation>) { fun isAnnotatedMaybeInSupertypes(kClass: KClass<*>): Boolean { // Can't use computeIfAbsent because of recursive calls hasRestrictedAnnotationWithSuperTypesCache[kClass]?.let { return it } return hasRestrictedAnnotationWithSuperTypes(kClass).also { hasRestrictedAnnotationCache[kClass] = it } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:07 UTC 2024 - 7.2K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/MethodCache.kt
) { private val methodCache = hashMapOf<Class<*>, Method?>() fun forObject(value: Any) = forClass(value.javaClass) fun forClass(type: Class<*>) = methodCache.computeIfAbsent(type) { it.firstAccessibleMatchingMethodOrNull(predicate) } } internal fun Class<*>.firstAccessibleMatchingMethodOrNull(predicate: Method.() -> Boolean): Method? =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 1.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/projectmodule/LocalComponentCache.java
* Loads cached dependency resolution metadata for the given project, if available, * or else runs the given function to create it and then writes the result to the cache. */ LocalComponentGraphResolveState computeIfAbsent(ProjectState project, Function<ProjectState, LocalComponentGraphResolveState> factory);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.5K bytes - Viewed (0) -
platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/DefaultBeanStateReaderLookup.kt
) : BeanStateReaderLookup { private val beanStateReaders = ConcurrentHashMap<Class<*>, BeanStateReader>() override fun beanStateReaderFor(beanType: Class<*>): BeanStateReader = beanStateReaders.computeIfAbsent(beanType) { type -> BeanPropertyReader(type, constructors, instantiatorFactory) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/ParamMap.java
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 5.3K bytes - Viewed (0)