- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 178 for computeIfAbsent (0.18 sec)
-
maven-di/src/main/java/org/apache/maven/di/impl/InjectorImpl.java
} @Override public Injector bindImplicit(Class<?> clazz) { Key<?> key = Key.of(clazz, ReflectionUtils.qualifierOf(clazz)); if (clazz.isInterface()) { bindings.computeIfAbsent(key, $ -> new HashSet<>()); } else if (!Modifier.isAbstract(clazz.getModifiers())) { Binding<?> binding = ReflectionUtils.generateImplicitBinding(key); doBind(key, binding); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 14.3K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultProfileInjector.java
@Override public Model injectProfiles( Model model, List<Profile> profiles, ModelBuilderRequest 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: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 9.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/projectmodule/DefaultProjectDependencyPublicationResolver.java
public <T> VariantCoordinateResolver<T> computeIfAbsent(Path identityPath, Class<T> coordsType, Function<Key, VariantCoordinateResolver<T>> factory) { Key key = new Key(identityPath, coordsType); VariantCoordinateResolver<?> result = cache.computeIfAbsent(key, factory); return Cast.uncheckedCast(result); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 02:21:10 UTC 2024 - 17.6K bytes - Viewed (0) -
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: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Nov 07 08:20:52 UTC 2023 - 10.1K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaSerializationEncodingLookup.kt
/** * Returns the proper encoding provider for the given type, or null, if not covered by Java Object serialization. */ fun encodingFor(type: Class<*>): Encoding? { return encodings.computeIfAbsent(type) { t -> calculateEncoding(t) }.encoding } private fun calculateEncoding(type: Class<*>): EncodingDetails { val candidates = type.allMethods()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 3.4K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/Graph.java
import java.util.Set; 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: Fri Apr 12 10:50:18 UTC 2024 - 3.3K bytes - Viewed (0) -
maven-model-builder/src/main/java/org/apache/maven/model/superpom/DefaultSuperPomProvider.java
public DefaultSuperPomProvider(ModelProcessor modelProcessor) { this.modelProcessor = modelProcessor; } @Override public Model getSuperModel(String version) { return SUPER_MODELS.computeIfAbsent(Objects.requireNonNull(version), v -> { String resource = "/org/apache/maven/model/pom-" + v + ".xml"; InputStream is = getClass().getResourceAsStream(resource); if (is == null) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Sep 26 05:17:52 UTC 2023 - 3.2K bytes - Viewed (0) -
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) -
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) -
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)