Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 75 for computeIfAbsent (0.08 seconds)

  1. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                }
    
                if (cls.isArray()) {
                    evaluateArray(target);
                } else if (isQualifiedForInterpolation(cls)) {
                    Field[] fields = FIELDS_BY_CLASS.computeIfAbsent(cls, k -> cls.getDeclaredFields());
    
                    for (Field field : fields) {
                        Class<?> type = field.getType();
                        if (isQualifiedForInterpolation(field, type)) {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleMappingDelegate.java

        }
    
        private void addMojoExecution(
                Map<PhaseId, List<MojoExecution>> phaseBindings, MojoExecution mojoExecution, PhaseId phaseId) {
            List<MojoExecution> mojoExecutions = phaseBindings.computeIfAbsent(phaseId, k -> new ArrayList<>());
    
            mojoExecutions.add(mojoExecution);
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Dec 13 23:04:37 GMT 2024
    - 8.5K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

                gasLocations.computeIfAbsent(ga, k -> new ArrayList<>()).add(location);
                // TODO: metaversions could be extensible enum with these two values out of the box
                if ("LATEST".equals(coreExtension.getVersion()) || "RELEASE".equals(coreExtension.getVersion())) {
                    metaVersionLocations.computeIfAbsent(ga, k -> new ArrayList<>()).add(location);
                }
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 10 07:39:11 GMT 2025
    - 25.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            }
    
            // Track connection metrics
            String key = getConnectionKey(address, port);
            connectionMetrics.computeIfAbsent(key, k -> new ConnectionMetrics()).recordConnection();
            activeConnections.incrementAndGet();
    
            if (nonPooled) {
                this.nonPooledConnections.offer(conn);
            } else {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 33.4K bytes
    - Click Count (0)
  5. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt

        val reportOnly: Provider<Boolean>
    )
    
    private class ConcurrentMultiMap<K, V> {
        private val map = ConcurrentHashMap<K, MutableSet<V>>()
    
        fun add(key: K, value: V) =
            map.computeIfAbsent(key, { _ -> ConcurrentHashMap.newKeySet() }).add(value)
    
        fun getOrEmpty(key: K): Set<V> = map[key] ?: emptySet()
    }
    
    abstract class TestFilesCleanupService @Inject constructor(
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Feb 11 11:05:07 GMT 2026
    - 14.3K bytes
    - Click Count (1)
  6. guava/src/com/google/common/collect/Maps.java

        }
    
        @Override
        public @Nullable 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
        public @Nullable V computeIfPresent(
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  7. 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");
        assertThat(notifications).isEmpty();
      }
    
      public void testCopyEntry_computing() {
        CountDownLatch startSignal = new CountDownLatch(1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 18 18:06:14 GMT 2026
    - 116.4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/audit/SecurityAuditLogger.java

            String key = type.name();
            long currentWindow = System.currentTimeMillis() / rateLimitWindow;
            String windowKey = key + "_" + currentWindow;
    
            AtomicLong counter = rateLimitCounters.computeIfAbsent(windowKey, k -> new AtomicLong(0));
            long currentCount = counter.incrementAndGet();
    
            // Clean up old windows periodically
            if (currentCount == 1) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

            if (StringUtil.isBlank(value)) {
                return Collections.emptyList();
            }
            return split(value, ",").get(stream -> stream.map(String::trim)//
                    .map(s -> clientRuleCache.computeIfAbsent(s, t -> {
                        final String[] values = t.split(":", 2);
                        if (values.length != 2) {
                            return null;
                        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Dec 11 09:47:03 GMT 2025
    - 19.5K bytes
    - Click Count (0)
  10. 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<>();
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 33.5K bytes
    - Click Count (0)
Back to Top