- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 75 for computeIfAbsent (0.36 seconds)
-
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/util/ports/ReservedPortRange.java
} public List<Integer> getAllocated() { return allocated; } public final Integer getOrAllocate(String id) { return allocatedPortsId.computeIfAbsent(id, (key) -> allocate()); } public final Integer getAllocated(String id) { return allocatedPortsId.get(id); } public int getCurrent() { return current; }Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.8K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java
} private LongAdder getCounter(BuilderProblem.Severity severity) { return counters.computeIfAbsent(severity, k -> new LongAdder()); } private List<P> getProblems(BuilderProblem.Severity severity) { return problems.computeIfAbsent(severity, k -> new CopyOnWriteArrayList<>()); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jul 18 17:30:19 GMT 2025 - 11.4K bytes - Click Count (0) -
impl/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(),
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 08:42:00 GMT 2025 - 3.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java
lifecycle.allPhases().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)))));
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Dec 13 23:04:37 GMT 2024 - 3.7K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/DistroTestPlugin.java
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Sep 28 21:31:21 GMT 2021 - 23.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java
return Optional.of(require(id)); } @Override @Nonnull public Type require(String id) { requireNonNull(id, "id cannot be null"); return usedTypes.computeIfAbsent(id, i -> { Type type = lookup.lookupList(TypeProvider.class).stream() .flatMap(p -> p.provides().stream()) .filter(t -> Objects.equals(id, t.id()))
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed May 14 04:47:58 GMT 2025 - 4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseId.java
* Parses the phase identifier. * * @param phase the phase identifier. * @return the {@link PhaseId}. */ public static synchronized PhaseId of(String phase) { return INSTANCES.computeIfAbsent(phase, PhaseId::new); } /** * Constructor. * * @param phase the phase identifier string. */ private PhaseId(String phase) { int phaseStart;Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java
ConcurrentMap<String, ConcurrentMap<String, Object>> pluginContextsByKey = pluginContextsByProjectAndPluginKey.computeIfAbsent(projectKey, k -> new ConcurrentHashMap<>()); String pluginKey = plugin.getPluginLookupKey(); return pluginContextsByKey.computeIfAbsent(pluginKey, k -> new ConcurrentHashMap<>()); } public ProjectDependencyGraph getProjectDependencyGraph() {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 16.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/resident/ResidentMavenInvoker.java
// and allow multiple instances per JVM, this may become a pool? derive key based in invokerRequest? MavenContext result = residentContext.computeIfAbsent( "resident", k -> new MavenContext(invokerRequest, false, (MavenOptions) invokerRequest.options().orElse(null))); return copyIfDifferent(result, invokerRequest);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Sep 11 17:20:46 GMT 2025 - 4.1K bytes - Click Count (0) -
docs/smb3-features/03-multi-channel-design.md
// Mark channel as failed failedChannel.setState(ChannelState.FAILED); // Get or create failover state FailoverState state = failoverStates.computeIfAbsent( failedChannel.getChannelId(), FailoverState::new ); // Redistribute pending operations redistributePendingOperations(failedChannel);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 39.6K bytes - Click Count (0)