Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for computeIfAbsent (0.16 sec)

  1. impl/maven-core/src/main/java/org/apache/maven/DefaultMaven.java

            final Set<MavenProject> projectsIncludingParents = new HashSet<>();
            for (MavenProject project : session.getProjects()) {
                superPomModels.computeIfAbsent(
                        project.getModelVersion(),
                        v -> superPomProvider.getSuperModel(v).getDelegate());
                boolean isAdded = projectsIncludingParents.add(project);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 27.5K bytes
    - Viewed (1)
  2. guava/src/com/google/common/collect/Synchronized.java

          synchronized (mutex) {
            return delegate().replace(key, value);
          }
        }
    
        @Override
        public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
          synchronized (mutex) {
            return delegate().computeIfAbsent(key, mappingFunction);
          }
        }
    
        @Override
        @CheckForNull
        public V computeIfPresent(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

            for (ArtifactRepository repository : repositories) {
                String key = repository.getId();
    
                List<ArtifactRepository> aliasedRepos = reposByKey.computeIfAbsent(key, k -> new ArrayList<>());
    
                aliasedRepos.add(repository);
            }
    
            List<ArtifactRepository> effectiveRepositories = new ArrayList<>();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/resolver/DefaultArtifactCollectorTest.java

                artifacts.put(getKey(spec.artifact), spec);
    
                String key = spec.artifact.getDependencyConflictId();
                List<ArtifactVersion> artifactVersions = versions.computeIfAbsent(key, k -> new ArrayList<>());
                if (spec.artifact.getVersion() != null) {
                    artifactVersions.add(new DefaultArtifactVersion(spec.artifact.getVersion()));
                }
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableMap.java

       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the map unmodified.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

            String referenceKey = "";
    
            if (summary.getReference() != null && !summary.getReference().isEmpty()) {
                referenceKey =
                        references.computeIfAbsent(summary.getReference(), k -> "[Help " + (references.size() + 1) + "]");
            }
    
            String msg = summary.getMessage();
    
            if (referenceKey != null && !referenceKey.isEmpty()) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 76.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        @CheckForNull
        public V replace(K key, V value) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public V computeIfAbsent(
            K key, java.util.function.Function<? super K, ? extends V> mappingFunction) {
          throw new UnsupportedOperationException();
        }
    
        @Override
        @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

        public void addIndexConfig(final String path) {
            indexConfigList.add(path);
        }
    
        public void addConfigFile(final String index, final String path) {
            configListMap.computeIfAbsent(index, k -> new ArrayList<>()).add(path);
        }
    
        public void setSettings(final Map<String, String> settings) {
            this.settings = settings;
        }
    
        public String getStatus() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Oct 20 02:08:03 UTC 2024
    - 86.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/cache/LocalCacheTest.java

              }
            };
        Cache<Object, Object> cache =
            CacheBuilder.newBuilder().removalListener(removalListener).build();
        cache.put("a", "b");
        cache.asMap().computeIfAbsent("a", k -> "c");
        assertTrue(notifications.toString(), notifications.isEmpty());
      }
    
      public void testCopyEntry_computing() {
        final CountDownLatch startSignal = new CountDownLatch(1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 112.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

        checkNotNull(key);
        checkNotNull(function);
        int hash = hash(key);
        return segmentFor(hash).compute(key, hash, function);
      }
    
      @Override
      public V computeIfAbsent(K key, Function<? super K, ? extends V> function) {
        checkNotNull(key);
        checkNotNull(function);
        return compute(key, (k, oldValue) -> (oldValue == null) ? function.apply(key) : oldValue);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
Back to top