- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 439 for hashCode (0.04 sec)
-
android/guava/src/com/google/common/hash/HashCode.java
* byte-based hashcode. Otherwise it returns {@link HashCode#asBytes}. Do <i>not</i> mutate this * array or else you will break the immutability contract of {@code HashCode}. */ byte[] getBytesInternal() { return asBytes(); } /** * Returns whether this {@code HashCode} and that {@code HashCode} have the same value, given that
Registered: 2025-05-30 12:43 - Last Modified: 2025-02-13 17:34 - 12.6K bytes - Viewed (0) -
android/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: 2025-05-30 12:43 - Last Modified: 2024-12-19 18:03 - 2.2K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Handshake.kt
other.localCertificates == localCertificates override fun hashCode(): Int { var result = 17 result = 31 * result + tlsVersion.hashCode() result = 31 * result + cipherSuite.hashCode() result = 31 * result + peerCertificates.hashCode() result = 31 * result + localCertificates.hashCode() return result } override fun toString(): String {
Registered: 2025-05-30 11:42 - Last Modified: 2025-04-05 09:48 - 6.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/Tuple3.java
} @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((value1 == null) ? 0 : value1.hashCode()); result = prime * result + ((value2 == null) ? 0 : value2.hashCode()); result = prime * result + ((value3 == null) ? 0 : value3.hashCode()); return result; } @Override
Registered: 2025-05-24 08:58 - Last Modified: 2025-05-10 01:32 - 4.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/EqualsTester.java
!item.equals(NotAnInstance.EQUAL_TO_NOTHING)); assertTrue(item + " must be Object#equals to itself", item.equals(item)); assertEquals( "the Object#hashCode of " + item + " must be consistent", item.hashCode(), item.hashCode()); if (!(item instanceof String)) { assertTrue( item + " must not be Object#equals to its Object#toString representation",
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 17:27 - 6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultisetEqualsTester.java
.addEqualityGroup(getSubjectGenerator().create()) .testEquals(); } public void testHashCodeMatchesEntrySet() { assertEquals(getMultiset().entrySet().hashCode(), getMultiset().hashCode()); } @CollectionSize.Require(absent = ZERO) @CollectionFeature.Require(ALLOWS_NULL_VALUES) public void testEqualsMultisetWithNullValue() { new EqualsTester()
Registered: 2025-05-30 12:43 - Last Modified: 2024-11-14 23:40 - 2.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SecurityBlob.java
Registered: 2025-05-25 00:10 - Last Modified: 2018-07-01 13:12 - 2.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
for (int i = 0; i < reps; i++) { for (Object value : hashMultiset) { sum += value.hashCode(); } } return sum; } @Benchmark int linkedHashMultiset(int reps) { int sum = 0; for (int i = 0; i < reps; i++) { for (Object value : linkedHashMultiset) { sum += value.hashCode(); } } return sum; } @Benchmark int treeMultiset(int reps) {
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-19 18:03 - 2.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashingTest.java
Random random = new Random(7); List<HashCode> hashCodes = new ArrayList<>(); for (int i = 0; i < 10; i++) { hashCodes.add(HashCode.fromLong(random.nextLong())); } HashCode hashCode1 = Hashing.combineOrdered(hashCodes); Collections.shuffle(hashCodes, random); HashCode hashCode2 = Hashing.combineOrdered(hashCodes); assertFalse(hashCode1.equals(hashCode2)); }
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 17:27 - 26.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
if (hash != other.hash) return false return true } override fun hashCode(): Int { var result = pattern.hashCode() result = 31 * result + hashAlgorithm.hashCode() result = 31 * result + hash.hashCode() return result } } /** Builds a configured certificate pinner. */ class Builder {
Registered: 2025-05-30 11:42 - Last Modified: 2025-03-19 19:25 - 14.1K bytes - Viewed (0)