- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 494 for hashcode (0.04 sec)
-
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: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 8.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java
int expectedHashCode = 0; for (E element : getSampleElements()) { expectedHashCode += (element == null) ? 0 : element.hashCode(); } assertEquals( "A Set's hashCode() should be the sum of those of its elements.", expectedHashCode, getSet().hashCode()); } @CollectionSize.Require(absent = CollectionSize.ZERO) @CollectionFeature.Require(ALLOWS_NULL_VALUES)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 3.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/MapDifference.java
*/ @Override boolean equals(@Nullable Object other); /** * The hash code equals the value {@code Arrays.asList(leftValue(), rightValue()).hashCode()}. */ @Override int hashCode(); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 3.4K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
assertErrorMessage( e, "the Object#hashCode (" + a.hashCode() + ") of " + a + " [group 1, item 1] must be equal to the Object#hashCode (" + b.hashCode() + ") of " + b); return; } fail("Should get invalid hashCode error"); } public void testNullEqualityGroup() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/tests/persistent/HandleGuidTest.java
HandleGuid guid2 = new HandleGuid(uuid); HandleGuid guid3 = new HandleGuid(); assertEquals(guid1, guid2); assertEquals(guid1.hashCode(), guid2.hashCode()); assertNotEquals(guid1, guid3); assertNotEquals(guid1.hashCode(), guid3.hashCode()); assertNotEquals(guid1, null); assertNotEquals(guid1, "not a guid"); } @Test public void testHandleGuidToString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt
equalsNonHost(other) override fun hashCode(): Int { var result = 17 result = 31 * result + url.hashCode() result = 31 * result + dns.hashCode() result = 31 * result + proxyAuthenticator.hashCode() result = 31 * result + protocols.hashCode() result = 31 * result + connectionSpecs.hashCode() result = 31 * result + proxySelector.hashCode() result = 31 * result + Objects.hashCode(proxy)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
int hashCode = 0; for (int i = 0; i < n; i++) { // requireNonNull is safe because the first `n` elements have been filled in. Entry<K, V> entry = requireNonNull(entryArray[i]); K key = entry.getKey(); V value = entry.getValue(); checkEntryNotNull(key, value); int keyHash = key.hashCode(); int valueHash = value.hashCode();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 11.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerStatusTest.java
hashCodes.add(CrawlerStatus.INITIALIZING.hashCode()); hashCodes.add(CrawlerStatus.RUNNING.hashCode()); hashCodes.add(CrawlerStatus.DONE.hashCode()); // While not guaranteed, typically enum hashCodes are different assertTrue(hashCodes.size() > 1); } /** * Test compareTo method */ public void test_compareTo() { // Compare with self
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Wed Sep 03 14:42:53 UTC 2025 - 15.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java
assertEquals( "A Map's hashCode() should be the sum of those of its entries (where " + "a null element in an entry counts as having a hash of zero).", expectedHashCode, getMap().hashCode()); } private static int hash(Entry<?, ?> e) { return (e.getKey() == null ? 0 : e.getKey().hashCode()) ^ (e.getValue() == null ? 0 : e.getValue().hashCode()); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/protwords/ProtwordsItemTest.java
assertNotSame(item1.hashCode(), item3.hashCode()); // Consistent hashCode assertEquals(item1.hashCode(), item1.hashCode()); } public void test_hashCode_withNullInput() { // Test hashCode with null input should throw NullPointerException ProtwordsItem item = new ProtwordsItem(1, null); try { item.hashCode(); fail("Expected NullPointerException");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 10.2K bytes - Viewed (0)