Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 185 for computeIfAbsent (0.19 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/CodeGenerator.kt

            targetTypesOf(accessorSpec.name).add(accessorSpec.receiver)
    
        private
        fun targetTypesOf(accessorNameSpec: AccessorNameSpec): HashSet<TypeAccessibility.Accessible> =
            targetTypesByName.computeIfAbsent(accessorNameSpec) { hashSetOf() }
    }
    
    
    internal
    fun extensionAccessor(spec: TypedAccessorSpec): String = spec.run {
        when (type) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/internal/build/PlannedNodeGraph.java

                ToPlannedNodeConverter converter = converterRegistry.getConverter(node);
                if (converter == null) {
                    return null;
                }
    
                return nodeIdentityCache.computeIfAbsent(node, converter::getNodeIdentity);
            }
        }
    
        /**
         * Computes dependencies of a node in breadth-first order, stopping at each dependency for which identity is provided.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 22 15:46:00 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java

         * @param supplier the supplier will compute the new value
         * @return the session data associated with the key
         */
        @Nullable
        <T> T computeIfAbsent(@Nonnull Key<T> key, @Nonnull Supplier<T> supplier);
    
        /**
         * Create a key using the given class as an identifier and as the type of the object.
         */
        static <T> Key<T> key(Class<T> clazz) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:09 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java

        }
    
        @Override
        public CacheRecord get(Key key, PluginRealmSupplier supplier)
                throws PluginResolutionException, PluginContainerException {
            try {
                return cache.computeIfAbsent(key, k -> {
                    try {
                        return supplier.load();
                    } catch (PluginResolutionException | PluginContainerException e) {
                        throw new RuntimeException(e);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 26 15:12:32 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/BindingsBackedCodec.kt

            NULL_VALUE -> null
            else -> bindings[tag].decoding.run { decode() }
        }
    
        private
        fun taggedEncodingFor(type: Class<*>): TaggedEncoding =
            encodings.computeIfAbsent(type, ::computeEncoding)
    
        private
        fun computeEncoding(type: Class<*>): TaggedEncoding {
            for (binding in bindings) {
                val encoding = binding.encodingForType(type)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultTransformedVariantFactory.java

            } else {
                variantKey = new VariantKey(identifier, target);
            }
    
            // Can't use computeIfAbsent() as the default implementation does not allow recursive updates
            ResolvedArtifactSet result = variants.get(variantKey);
            if (result == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 11:35:20 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/DependencyState.java

            if (substitutionResultMap == null) {
                substitutionResultMap = new HashMap<>();
            }
            return substitutionResultMap.computeIfAbsent(substitutionResult, mappingFunction);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/internal/resolve/resolver/DefaultVariantArtifactResolver.java

                // It might be better to tighten this up by either requiring a single artifactType registry for the entire build or eliminating this feature
                // entirely.
                return resolvedVariantCache.computeIfAbsent(new VariantWithOverloadAttributes(identifier, attributes), id -> {
                    DisplayName displayName = variant.asDescribable();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 04:22:29 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/resolution/failure/ResolutionFailureDescriberRegistry.java

            ResolutionFailureDescriber<?> describer = instanceGenerator.newInstance(describerType);
            describers.computeIfAbsent(failureType, k -> new ArrayList<>()).add(describer);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:29:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. maven-core/src/main/java/org/apache/maven/session/scope/internal/SessionScope.java

            }
    
            @SuppressWarnings("unchecked")
            public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
                Provider<?> provider = provided.computeIfAbsent(key, k -> new CachingProvider<>(unscoped));
                return (Provider<T>) provider;
            }
    
            public Collection<CachingProvider<?>> providers() {
                return provided.values();
            }
        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top