Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for computeIfAbsent (0.12 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      public void testComputeIfAbsent_supportedAbsent() {
        assertEquals(
            "computeIfAbsent(notPresent, function) should return new value",
            v3(),
            getMap()
                .computeIfAbsent(
                    k3(),
                    k -> {
                      assertEquals(k3(), k);
                      return v3();
                    }));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/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: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

        }
    
        public void putSource(String groupId, String artifactId, FileModelSource source) {
            mappedSources
                    .computeIfAbsent(groupId + ":" + artifactId, k -> new HashSet<>())
                    .add(source);
            if (groupId != null) {
                mappedSources.computeIfAbsent(artifactId, k -> new HashSet<>()).add(source);
            }
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt

        fun <T : Any?> executeQuery(apiSourceFile: ApiSourceFile.Java, query: JavaSourceQuery<T>): T =
            openJavaCompilationUnitsByFile
                .computeIfAbsent(apiSourceFile.currentFile) { JavaParser().parse(it).getResult().get() }
                .accept(query.visitor, null)
                ?: query.defaultValue
    
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jun 28 08:29:24 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelCache.java

     *
     * @deprecated use {@link org.apache.maven.api.services.ModelBuilder} instead
     */
    @Deprecated(since = "4.0.0")
    public interface ModelCache {
    
        <T> T computeIfAbsent(String groupId, String artifactId, String version, String tag, Supplier<T> data);
    
        <T> T computeIfAbsent(Source path, String tag, Supplier<T> data);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. impl/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: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. impl/maven-core/src/main/java/org/apache/maven/ReactorReader.java

                if (allProjects != null) {
                    Map<String, Map<String, Map<String, MavenProject>>> map = new HashMap<>();
                    allProjects.forEach(project -> map.computeIfAbsent(project.getGroupId(), k -> new HashMap<>())
                            .computeIfAbsent(project.getArtifactId(), k -> new HashMap<>())
                            .put(project.getVersion(), project));
                    this.allProjects = map;
                } else {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/entity/ParamMap.java

            // use original key
            return parent.replace(key, value);
        }
    
        @Override
        public V computeIfAbsent(final K key, final Function<? super K, ? extends V> mappingFunction) {
            // use original key
            return parent.computeIfAbsent(key, mappingFunction);
        }
    
        @Override
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/profile/DefaultProfileInjector.java

        @Override
        public Model injectProfiles(
                Model model, List<Profile> profiles, ModelBuildingRequest request, ModelProblemCollector problems) {
            Model result = CACHE.computeIfAbsent(model, k -> new ConcurrentHashMap<>())
                    .computeIfAbsent(profiles, l -> doInjectProfiles(model, profiles));
            return result == KEY ? model : result;
        }
    
        private Model doInjectProfiles(Model model, List<Profile> profiles) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

        }
    
        private
        fun addExecutedTaskPath(taskPath: String) {
            projectPathToExecutedTaskPaths.computeIfAbsent(taskPathToProjectPath(taskPath)) { mutableListOf() }.add(taskPath)
        }
    
        private
        fun addFailedTaskPath(taskPath: String) {
            projectPathToFailedTaskPaths.computeIfAbsent(taskPathToProjectPath(taskPath)) { mutableListOf() }.add(taskPath)
        }
    
        private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Fri Jul 28 16:19:47 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top