Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 325 for calculateId (0.23 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/descriptor/MavenRepositoryDescriptor.java

                }
                ImmutableList<ResourcePattern> artifactResources = artifactResourcesBuilder.build();
    
                String id = calculateId(MavenResolver.class, metadataResources, artifactResources, metadataSources, hasher -> {});
    
                return new MavenRepositoryDescriptor(
                    id,
                    checkNotNull(name),
                    url,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/descriptor/UrlRepositoryDescriptor.java

                this.authenticationSchemes = ImmutableList.copyOf(authenticationSchemes);
                return self();
            }
    
            protected String calculateId(
                Class<? extends ExternalResourceResolver> implementation,
                List<ResourcePattern> metadataResources,
                List<ResourcePattern> artifactResources,
                List<String> metadataSources,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/descriptor/IvyRepositoryDescriptor.java

                ImmutableList<ResourcePattern> effectiveIvyResources = ivyResourcesBuilder.build();
                ImmutableList<ResourcePattern> effectiveArtifactResources = artifactResourcesBuilder.build();
    
                String id = calculateId(IvyResolver.class, effectiveIvyResources, effectiveArtifactResources, metadataSources, hasher -> hasher.putBoolean(m2Compatible));
    
                return new IvyRepositoryDescriptor(
                    id,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/ChecksumAlgorithmService.java

        @Nonnull
        Map<ChecksumAlgorithm, String> calculate(@Nonnull byte[] data, @Nonnull Collection<ChecksumAlgorithm> algorithms);
    
        /**
         * Calculates checksums for specified data.
         *
         * @param data        The content for which to calculate checksums, must not be {@code null}.
         * @param algorithms  The checksum algorithms to use, must not be {@code null}.
         * @return The calculated checksums, indexed by algorithms, never {@code null}.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Dec 21 08:05:10 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/model/CalculatedValue.java

         */
        Try<T> getValue() throws IllegalStateException;
    
        /**
         * Returns true if this value is already calculated.
         * Note that some other thread may currently be calculating the value even if this method returns false.
         */
        boolean isFinalized();
    
        /**
         * Calculates the value, if not already calculated. Collects any exception and does not rethrow them.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:24 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/cache/internal/DefaultFileContentCacheFactoryTest.groovy

            1 * fileSystemAccess.readRegularFileContentHash(file.absolutePath) >> Optional.empty()
            1 * calculator.calculate(file, false) >> 12
            0 * _
    
            when:
            result = cache.get(file)
    
            then:
            result == 12
            0 * _
        }
    
        def "reuses calculated value for file across cache instances"() {
            def file = new File("thing.txt")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/internal/model/CalculatedValueContainerTest.groovy

            e.message == 'Value for <thing> has not been calculated yet.'
    
            when:
            container.getValue().get()
    
            then:
            def e2 = thrown(IllegalStateException)
            e2.message == 'Value for <thing> has not been calculated yet.'
        }
    
        def "at most one thread calculates the value"() {
            // Don't use a spock mock as these apply their own synchronization
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 19 19:42:22 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/api/provider/HasConfigurableValue.java

         */
        void finalizeValue();
    
        /**
         * Requests that the final value of this object be calculated on the next read of the value, if not already known.
         *
         * <p>Changes to the value of this object or to the source for the value are still permitted until the final value is calculated, after which time attempts to make changes will fail with an exception.</p>
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 05 16:10:02 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/quota/v1/interfaces.go

    	"k8s.io/apiserver/pkg/admission"
    	"k8s.io/client-go/tools/cache"
    )
    
    // UsageStatsOptions is an options structs that describes how stats should be calculated
    type UsageStatsOptions struct {
    	// Namespace where stats should be calculate
    	Namespace string
    	// Scopes that must match counted objects
    	Scopes []corev1.ResourceQuotaScope
    	// Resources are the set of resources to include in the measurement
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 30 21:02:09 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/file/TaskFileVarFactory.java

        /**
         * Creates a {@link FileCollection} that represents some task input that is calculated from one or more other file collections.
         *
         * <p>The implementation applies caching to the result, so that the matching files are calculated during file snapshotting and the result cached in memory for when it is queried again, either during task action execution or in order to calculate some other task input value.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 07 03:00:19 UTC 2018
    - 2.1K bytes
    - Viewed (0)
Back to top