Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,660 for hash_code (0.14 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/attributes/DefaultImmutableAttributes.java

            hierarchyByName.put(attribute.getName(), this);
            this.hierarchyByName = ImmutableMap.copyOf(hierarchyByName);
            int hashCode = parent.hashCode();
            hashCode = 31 * hashCode + attribute.hashCode();
            hashCode = 31 * hashCode + value.hashCode();
            this.hashCode = hashCode;
            if (hierarchyByName.size() == 1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 12:57:50 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/modulecache/artifacts/DefaultModuleArtifactsCache.java

                return Objects.equal(identifierSerializer, rhs.identifierSerializer);
            }
    
            @Override
            public int hashCode() {
                return Objects.hashCode(super.hashCode(), identifierSerializer);
            }
        }
    
        private static class ModuleArtifactsCacheEntrySerializer extends AbstractSerializer<ModuleArtifactsCacheEntry> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/model/internal/type/GenericArrayTypeWrapper.java

    class GenericArrayTypeWrapper implements TypeWrapper {
        private final TypeWrapper componentType;
        private final int hashCode;
    
        public GenericArrayTypeWrapper(TypeWrapper componentType, int hashCode) {
            this.componentType = componentType;
            this.hashCode = hashCode;
        }
    
        public TypeWrapper getComponentType() {
            return componentType;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 11 21:42:04 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/GradleSerializedValueSnapshot.java

        private final HashCode implementationHash;
        private final byte[] serializedValue;
    
        public GradleSerializedValueSnapshot(
            @Nullable HashCode implementationHash,
            byte[] serializedValue
        ) {
            this.implementationHash = implementationHash;
            this.serializedValue = serializedValue;
        }
    
        @Nullable
        public HashCode getImplementationHash() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/InvalidatableSet.java

        this.validator = validator;
        this.errorMessage = errorMessage;
      }
    
      // Override hashCode() to access delegate directly (so that it doesn't trigger the validate() call
      // via delegate()); it seems inappropriate to throw ISE on this method.
      @Override
      public int hashCode() {
        return delegate.hashCode();
      }
    
      private void validate() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/impl/LambdaImplementationSnapshot.java

     */
    
    package org.gradle.internal.snapshot.impl;
    
    import org.gradle.internal.hash.HashCode;
    import org.gradle.internal.hash.Hasher;
    
    import javax.annotation.Nullable;
    import java.lang.invoke.SerializedLambda;
    import java.util.Objects;
    
    public class LambdaImplementationSnapshot extends ImplementationSnapshot {
    
        private final HashCode classLoaderHash;
    
        private final String functionalInterfaceClass;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/FallbackHandlingResourceHasher.java

        @Nullable
        @Override
        public HashCode hash(RegularFileSnapshotContext snapshotContext) throws IOException {
            return Optional.of(snapshotContext)
                .filter(this::filter)
                .flatMap(path -> tryHash(snapshotContext))
                .orElseGet(IoSupplier.wrap(() -> delegate.hash(snapshotContext)));
        }
    
        @Nullable
        @Override
        public HashCode hash(ZipEntryContext zipEntryContext) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/reflect/TypeOfSpec.groovy

        }
    
        def "hashCode semantics"() {
            given:
            def a = new TypeOf() {}.hashCode()
            def b = new TypeOf<List>() {}.hashCode()
            def c = new TypeOf<List<String>>() {}.hashCode()
    
            expect:
            a != b
            b != c
            c != a
    
            and:
            a == new TypeOf() {}.hashCode()
            b == new TypeOf<List>() {}.hashCode()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Oct 29 11:51:08 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/FileSystemSnapshotSerializer.java

            encoder.writeByte((byte) accessType.ordinal());
        }
    
        private static HashCode readHashCode(Decoder decoder) throws IOException {
            return HashCode.fromBytes(decoder.readBinary());
        }
    
        private static void writeHashCode(Encoder encoder, HashCode hashCode) throws IOException {
            encoder.writeBinary(hashCode.toByteArray());
        }
    
        private static class SnapshotStack {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 15:45:55 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashFunction.java

        /**
         * Hash the given bytes using the hash function.
         */
        HashCode hashBytes(byte[] bytes);
    
        /**
         * Hash the given string using the hash function.
         */
        HashCode hashString(CharSequence string);
    
        /**
         * Hash the contents of the given {@link java.io.InputStream}.
         */
        HashCode hashStream(InputStream stream) throws IOException;
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top