Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for computeIfAbsent (0.25 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/DefaultBeanStateWriterLookup.kt

        private
        val beanPropertyWriters = ConcurrentHashMap<Class<*>, BeanStateWriter>()
    
        override fun beanStateWriterFor(beanType: Class<*>): BeanStateWriter =
            beanPropertyWriters.computeIfAbsent(beanType, ::BeanPropertyWriter)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/FetchParameterizedCustomModelForEachProject.java

                Map<String, SomeToolingModel> model = fetchSomeModelForAllProjects(controller, buildModel, parameter);
                for (Map.Entry<String, SomeToolingModel> entry : model.entrySet()) {
                    result.computeIfAbsent(entry.getKey(), k -> new ArrayList<>()).add(entry.getValue());
                }
            }
    
            return result;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java

        }
    
        @Override
        public Injector bindImplicit(Class<?> clazz) {
            Key<?> key = Key.of(clazz, ReflectionUtils.qualifierOf(clazz));
            if (clazz.isInterface()) {
                bindings.computeIfAbsent(key, $ -> new HashSet<>());
            } else if (!Modifier.isAbstract(clazz.getModifiers())) {
                Binding<?> binding = ReflectionUtils.generateImplicitBinding(key);
                doBind(key, binding);
            }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top