- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 175 for computeIfAbsent (0.31 sec)
-
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/WeakIdentityHashMapTest.groovy
Thing thing = new Thing("thing") WeakIdentityHashMap<Thing, String> map = new WeakIdentityHashMap<>() assert map.get(thing) == null String foo = map.computeIfAbsent( thing, new WeakIdentityHashMap.AbsentValueProvider<String>() { @Override String provide() { return "Foo" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 4.5K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/ConsumerProvidedVariantFinder.java
for (ResolvedVariant variant : sources) { variantAttributes.add(variant.getAttributes().asImmutable()); } List<CachedVariant> cached = cache.computeIfAbsent(new CacheKey(variantAttributes, requested), key -> action.apply(key.variantAttributes, key.requested)); List<TransformedVariant> output = new ArrayList<>(cached.size());
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 13.8K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/ModuleExclusions.java
return factory.anyOf(result); } public ExcludeSpec nothing() { return nothing; } private ExcludeSpec forExclude(ExcludeMetadata r) { return metadataToExcludeCache.computeIfAbsent(r, rule -> { // For custom ivy pattern matchers, don't inspect the rule any more deeply: this prevents us from doing smart merging later if (!PatternMatchers.isExactMatcher(rule.getMatcher())) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 5.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultAttributesSchema.java
return strategies.containsKey(key); } @Override public AttributeMatcher withProducer(AttributesSchemaInternal producerSchema) { return matcherCache.computeIfAbsent(producerSchema, key -> new DefaultAttributeMatcher(new DefaultAttributeSelectionSchema(this, producerSchema))); } @Override public AttributeMatcher matcher() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 16:59:54 UTC 2024 - 16.1K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KtFirAnalysisSessionProvider.kt
return createAnalysisSession(useSiteKtModule) } val identifier = tokenFactory.identifier identifier.flushPendingChanges(project) return cache.computeIfAbsent(useSiteKtModule, ::createAnalysisSession) } private fun createAnalysisSession(useSiteKtModule: KtModule): KaFirSession { val firResolveSession = useSiteKtModule.getFirResolveSession(project)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Thu Jun 06 17:44:50 UTC 2024 - 5.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/ResolvedArtifactsGraphVisitor.java
return new ArtifactsForNode(id, new VariantResolvingArtifactSet(variantResolver, component, variant, dependency, graphVariantSelector, consumerSchema)); } return artifactsByNodeId.computeIfAbsent(toNode.getNodeId(), (LongFunction<ArtifactsForNode>) value -> { int id = nextId++;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 02:21:08 UTC 2024 - 6.2K bytes - Viewed (0) -
platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/software/internal/DefaultSoftwareTypeRegistry.java
if (softwareTypeImplementations != null) { throw new IllegalStateException("Cannot register a plugin after software types have been discovered"); } pluginClasses.computeIfAbsent(registeringPluginClass, k -> new LinkedHashSet<>()).add(pluginClass); } private Set<SoftwareTypeImplementation<?>> discoverSoftwareTypeImplementations() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 03 16:02:31 UTC 2024 - 6.3K bytes - Viewed (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt
{ loader.getResourceAsStream(classFilePath).use { it!!.readBytes() } } } } private fun openJarFile(file: File) = openJars.computeIfAbsent(file, ::JarFile) override fun close() { openJars.values.forEach(JarFile::close) } } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 17:45:10 UTC 2024 - 6.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/resolution/failure/describer/MissingAttributeAmbiguousGraphVariantsFailureDescriber.java
Attribute<?> attribute = candidateAttribute.getAttribute(); Set<String> unrequestedValuesForAttribute = unrequestedAttributesWithValues.computeIfAbsent(attribute.getName(), name -> new HashSet<>()); unrequestedValuesForAttribute.add(Objects.requireNonNull(candidateAttribute.getProvided()).toString()); }); });
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 16:12:53 UTC 2024 - 6K bytes - Viewed (0) -
src/mdo/java/ImmutableCollections.java
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Jan 22 17:27:48 UTC 2024 - 16.7K bytes - Viewed (0)