Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 105 for computeIfAbsent (0.23 sec)

  1. src/mdo/java/WrapperProperties.java

            return writeOperation(p -> p.replace(key, value));
        }
    
        @Override
        public synchronized Object computeIfAbsent(Object key, Function<? super Object, ?> mappingFunction) {
            return writeOperation(p -> p.computeIfAbsent(key, mappingFunction));
        }
    
        @Override
        public synchronized Object computeIfPresent(
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Mar 01 16:30:18 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/AttributeDesugaring.java

         */
        public ImmutableAttributes desugar(ImmutableAttributes attributes) {
            if (attributes.isEmpty()) {
                return attributes;
            }
            return desugared.computeIfAbsent(attributes,  key -> {
                AttributeContainerInternal mutable = attributesFactory.mutable();
                Set<Attribute<?>> keySet = key.keySet();
                for (Attribute<?> attribute : keySet) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java

    import java.util.*;
    
    class Graph {
    
        final Map<String, Set<String>> graph = new LinkedHashMap<>();
    
        synchronized void addEdge(String from, String to) throws CycleDetectedException {
            if (graph.computeIfAbsent(from, l -> new HashSet<>()).add(to)) {
                List<String> cycle = visitCycle(graph, Collections.singleton(to), new HashMap<>(), new LinkedList<>());
                if (cycle != null) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  4. analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/packages/KotlinStandalonePackageProvider.kt

                    packages.getOrPut(currentPackage) { mutableSetOf() } += subPackage
                    currentPackage = currentPackage.child(subPackage)
                }
                packages.computeIfAbsent(currentPackage) { mutableSetOf() }
            }
            packages
        }
    
        override fun doesKotlinOnlyPackageExist(packageFqName: FqName): Boolean {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultSuperPomProvider.java

        public DefaultSuperPomProvider(ModelProcessor modelProcessor) {
            this.modelProcessor = modelProcessor;
        }
    
        @Override
        public Model getSuperPom(String version) {
            return SUPER_MODELS.computeIfAbsent(Objects.requireNonNull(version), v -> readModel(version, v));
        }
    
        private Model readModel(String version, String v) {
            String resource = "/org/apache/maven/model/pom-" + v + ".xml";
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java

                    allHandlers.clear();
                }
            }
        }
    
        @Override
        public ArtifactHandler getArtifactHandler(String id) {
            return allHandlers.computeIfAbsent(id, k -> {
                Type type = typeRegistry.require(id);
                return new DefaultArtifactHandler(
                        id,
                        type.getExtension(),
                        type.getClassifier(),
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Mar 01 17:18:13 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java

            lifecycle.phases().forEach(phase -> phase.plugins()
                    .forEach(plugin -> plugin.getExecutions().forEach(exec -> exec.getGoals()
                            .forEach(goal -> goals.computeIfAbsent(phase.name(), n -> new ArrayList<>())
                                    .add(plugin.getGroupId() + ":" + plugin.getArtifactId() + ":" + plugin.getVersion()
                                            + ":" + goal)))));
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed May 22 13:45:13 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/dependencies/LocalConfigurationMetadataBuilder.java

         */
        class DependencyCache {
            private final Map<String, DefaultLocalConfigurationMetadataBuilder.DependencyState> cache = new HashMap<>();
    
            public DefaultLocalConfigurationMetadataBuilder.DependencyState computeIfAbsent(
                ConfigurationInternal configuration,
                Function<ConfigurationInternal, DependencyState> factory
            ) {
                DependencyState state = cache.get(configuration.getName());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/jvm/internal/DefaultJvmLanguageUtilities.java

            ConfigurationInternal configurationInternal = (ConfigurationInternal) configuration;
            Set<TaskProvider<COMPILE>> compileTasks = Cast.uncheckedCast(configurationToCompileTasks.computeIfAbsent(configurationInternal, key -> new HashSet<>()));
            compileTasks.add(compileTask);
    
            JavaPluginExtension java = project.getExtensions().getByType(JavaPluginExtension.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 05:47:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelTransformerContext.java

                                // Ignore
                            }
                        }
                    }
                }
                return model;
            }
    
            public Model computeIfAbsent(Supplier<Model> supplier) {
                if (!set) {
                    synchronized (this) {
                        if (!set) {
                            this.set = true;
                            this.model = supplier.get();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top