- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 585 for hashCode (0.04 sec)
-
compat/maven-compat/src/test/java/org/apache/maven/artifact/repository/MavenArtifactRepositoryTest.java
MavenArtifactRepositorySubclass r3 = new MavenArtifactRepositorySubclass("bar"); assertTrue(r1.hashCode() == r2.hashCode()); assertFalse(r1.hashCode() == r3.hashCode()); assertTrue(r1.equals(r2), "Expected " + r1 + " to equal " + r2); assertTrue(r2.equals(r1), "Expected " + r2 + " to equal " + r1);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/ObjectUtil.java
* Returns the hash code of the specified object, or 0 if the object is null. * * @param obj the object * @return the hash code or 0 */ public static int hashCode(final Object obj) { return obj == null ? 0 : obj.hashCode(); } /** * Returns the string representation of the specified object, or null if the object is null. * * @param obj the objectRegistered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactInstallerRequest.java
return o instanceof DefaultArtifactInstallerRequest that && Objects.equals(artifacts, that.artifacts); } @Override public int hashCode() { return Objects.hashCode(artifacts); } @Override public String toString() { return "ArtifactInstallerRequest[" + "artifacts=" + artifacts + ']'; }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 4.2K bytes - Viewed (0) -
guava/src/com/google/common/reflect/AbstractInvocationHandler.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 5.1K bytes - Viewed (0) -
guava/src/com/google/common/base/Predicates.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 26.6K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Objects.java
* Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a * single Object array, do not get any special handling; their hash codes are based on identity * and not contents. * * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object thatRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 28 22:51:26 UTC 2025 - 3.1K bytes - Viewed (0) -
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: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java
assertEquals(control("foo", 1).hashCode(), entry("foo", 1).hashCode()); assertEquals(control("bar", 2).hashCode(), entry("bar", 2).hashCode()); } public void testHashCodeNull() { assertEquals(control(NK, 1).hashCode(), entry(NK, 1).hashCode()); assertEquals(control("bar", NV).hashCode(), entry("bar", NV).hashCode()); assertEquals(control(NK, NV).hashCode(), entry(NK, NV).hashCode()); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.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: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultExtensionRealmCache.java
ids.add(artifact.getVersion()); } this.hashCode = 31 * files.hashCode() + 31 * ids.hashCode() + 31 * timestamps.hashCode() + 31 * sizes.hashCode(); } @Override public int hashCode() { return hashCode; } @Override public boolean equals(Object o) { if (o == this) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 4.8K bytes - Viewed (0)