Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 1,660 for hash_code (0.16 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/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)
  3. android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        sink.putByte((byte) 7);
        sink.putBytes(new byte[] {});
        sink.putBytes(new byte[] {8});
        HashCode unused = sink.hash();
        sink.assertInvariants(8);
        sink.assertBytes(expected);
      }
    
      public void testShort() {
        Sink sink = new Sink(4);
        sink.putShort((short) 0x0201);
        HashCode unused = sink.hash();
        sink.assertInvariants(2);
        sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  4. 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)
  5. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/ComplexExpression.java

            return Objects.equal(value, other.value) && arguments.equals(other.arguments);
        }
    
        @Override
        public int hashCode() {
            return type.hashCode() ^ (value == null ? 0 : value.hashCode()) ^ arguments.hashCode();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/DefaultProjectComponentIdentifierTest.groovy

            def id2 = newProjectId(projectPath)
            strictlyEquals(id1, id2) == equality
            (id1.hashCode() == id2.hashCode()) == hashCode
            (id1.toString() == id2.toString()) == stringRepresentation
    
            where:
            projectPath       | equality | hashCode | stringRepresentation
            ':myProjectPath1' | true     | true     | true
            ':myProjectPath2' | false    | false    | false
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 22 14:22:44 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. testing/soak/src/testFixtures/groovy/org/gradle/launcher/daemon/fixtures/FullyQualifiedGarbageCollector.groovy

            }
            if (version != that.version) {
                return false
            }
    
            return true
        }
    
        int hashCode() {
            int result
            result = vendor.hashCode()
            result = 31 * result + version.hashCode()
            result = 31 * result + gc.hashCode()
            return result
        }
    
    
        @Override
        public String toString() {
            return "FullyQualifiedGarbageCollector{" +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. 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)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/simple/DefaultModuleSetExclude.java

    import java.util.Set;
    
    final class DefaultModuleSetExclude implements ModuleSetExclude {
        private final Set<String> modules;
        private final int hashCode;
    
        DefaultModuleSetExclude(Set<String> modules) {
            this.modules = modules;
            this.hashCode = modules.hashCode();
        }
    
        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. 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)
Back to top