- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 264 for hashcode (0.05 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: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/opensearch/client/CrawlerEngineClientTest.java
assertNotNull(result); } // Test hashCode method public void test_hashCode() { // Test that hashCode returns consistent value int hashCode1 = crawlerEngineClient.hashCode(); int hashCode2 = crawlerEngineClient.hashCode(); assertEquals(hashCode1, hashCode2); } // Test equals method public void test_equals() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryExpiredExceptionTest.java
} public void test_hashCode() { // Test hashCode consistency DictionaryExpiredException exception = new DictionaryExpiredException(); int hashCode1 = exception.hashCode(); int hashCode2 = exception.hashCode(); assertEquals(hashCode1, hashCode2); } public void test_toString() { // Test toString method
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
assertEquals("deadbeef", blob.toString(), "toString() should reflect underlying content"); assertEquals(data.hashCode(), blob.hashCode(), "hashCode should equal the array's hashCode"); } // Validates equals() returns true for same-sized, equal-content blobs @Test @DisplayName("equals: identical content and size -> true")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.4K 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: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 6.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SecurityBlob.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ObjectsTest.java
int h1 = Objects.hashCode(1, "two", 3.0); int h2 = Objects.hashCode(Integer.valueOf(1), new String("two"), Double.valueOf(3.0)); // repeatable assertEquals(h1, h2); // These don't strictly need to be true, but they're nice properties. assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2)); assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, null, 2));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java
// Same inputs and output should have same hash code assertEquals(item1.hashCode(), item2.hashCode()); // Different inputs should have different hash code assertNotSame(item1.hashCode(), item3.hashCode()); // Same inputs but different output should have different hash code assertNotSame(item1.hashCode(), item4.hashCode()); } public void test_equals() {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
UniAddress uniAddress1 = new UniAddress(inetAddress1); assertEquals(inetAddress1.hashCode(), uniAddress1.hashCode()); UniAddress uniAddress2 = new UniAddress(nbtAddress1); assertEquals(nbtAddress1.hashCode(), uniAddress2.hashCode()); } @Test void equalsShouldReturnTrueForSameWrappedAddress() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
android/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)