- Sort Score
- Result 10 results
- Languages All
Results 161 - 170 of 1,660 for hash_code (0.31 sec)
-
guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java
for (E element : getOrderedElements()) { expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode()); } assertEquals( "A List's hashCode() should be computed from those of its elements.", expectedHashCode, getList().hashCode()); } /** * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 16:49:06 UTC 2024 - 1.9K bytes - Viewed (0) -
platforms/jvm/jacoco/src/main/java/org/gradle/internal/jacoco/rules/JacocoViolationRuleImpl.java
} @Override public int hashCode() { int result = enabled ? 1 : 0; result = 31 * result + (scope != null ? scope.hashCode() : 0); result = 31 * result + (includes != null ? includes.hashCode() : 0); result = 31 * result + (excludes != null ? excludes.hashCode() : 0); result = 31 * result + (limits != null ? limits.hashCode() : 0); return result; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 16:03:36 UTC 2023 - 3.5K bytes - Viewed (0) -
platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/impl/ClassImplementationSnapshot.java
import org.gradle.internal.hash.HashCode; import org.gradle.internal.hash.Hasher; import javax.annotation.Nonnull; import javax.annotation.Nullable; import java.util.Objects; public class ClassImplementationSnapshot extends ImplementationSnapshot { private final HashCode classLoaderHash; public ClassImplementationSnapshot(String classIdentifier, HashCode classLoaderHash) { super(classIdentifier);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 2.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/test/groovy/org/gradle/caching/MapBasedBuildCacheServiceTest.groovy
class MapBasedBuildCacheServiceTest extends Specification { def delegate = Mock(ConcurrentMap) def cache = new MapBasedBuildCacheService(delegate) def hashCode = "123456" def cacheKey = Stub(BuildCacheKey) { getHashCode() >> hashCode } def reader = Mock(BuildCacheEntryReader) def writer = Mock(BuildCacheEntryWriter) def data = [1, 2, 3] as byte[] def "can read from map"() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 1.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java
dummy += Objects.hashCode(S0, S1, S2, S3); } return dummy; } @Benchmark int hashString_5(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Objects.hashCode(S0, S1, S2, S3, S4); } return dummy; } @Benchmark int hashMixed_5(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { dummy += Objects.hashCode(I2, S1, D1, S2, I0);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/verification/ChecksumAndSignatureVerificationOverride.java
int hashCode = artifact.getComponentIdentifier().hashCode(); hashCode = 31 * hashCode + artifact.getFileName().hashCode(); hashCode = 31 * hashCode + repositoryId.hashCode(); return hashCode; } @Override public boolean equals(Object o) { if (this == o) { return true; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Jan 21 03:12:15 UTC 2024 - 14.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/artifacts/dependencies/DefaultDependencyArtifact.java
} @Override public int hashCode() { int result = name.hashCode(); result = 31 * result + (type != null ? type.hashCode() : 0); result = 31 * result + (extension != null ? extension.hashCode() : 0); result = 31 * result + (classifier != null ? classifier.hashCode() : 0); result = 31 * result + (url != null ? url.hashCode() : 0); return result; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Aug 12 22:06:42 UTC 2022 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/graph/EndpointPair.java
public abstract boolean equals(@CheckForNull Object obj); /** * The hashcode of an ordered {@link EndpointPair} is equal to {@code Objects.hashCode(source(), * target())}. The hashcode of an unordered {@link EndpointPair} is equal to {@code * nodeU().hashCode() + nodeV().hashCode()}. */ @Override public abstract int hashCode(); private static final class Ordered<N> extends EndpointPair<N> {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 01 17:18:04 UTC 2021 - 8.1K bytes - Viewed (0) -
platforms/core-execution/hashing/src/testFixtures/groovy/org/gradle/internal/hash/TestHashCodes.groovy
*/ package org.gradle.internal.hash class TestHashCodes { /** * Create a 128-bit {@link HashCode} using the given value. * The higher 64 bits are set to {@code 0}. */ static HashCode hashCodeFrom(long value) { return new HashCode.HashCode128(value, 0) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:43:29 UTC 2023 - 906 bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractMapEntry.java
&& Objects.equal(this.getValue(), that.getValue()); } return false; } @Override public int hashCode() { K k = getKey(); V v = getValue(); return ((k == null) ? 0 : k.hashCode()) ^ ((v == null) ? 0 : v.hashCode()); } /** Returns a string representation of the form {@code {key}={value}}. */ @Override public String toString() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Aug 05 00:40:25 UTC 2021 - 2K bytes - Viewed (0)