- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 585 for hashCode (1.06 sec)
-
compat/maven-model/src/test/java/org/apache/maven/model/ActivationPropertyTest.java
/** * Tests {@code ActivationProperty}. * */ class ActivationPropertyTest { @Test void testHashCodeNullSafe() { new ActivationProperty().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new ActivationProperty().equals(null)); new ActivationProperty().equals(new ActivationProperty()); } @TestRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.7K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/DeveloperTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Developer}. * */ class DeveloperTest { @Test void testHashCodeNullSafe() { new Developer().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new Developer().equals(null)); new Developer().equals(new Developer()); } @TestRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ParentTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Parent}. * */ class ParentTest { @Test void testHashCodeNullSafe() { new Parent().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new Parent().equals(null)); new Parent().equals(new Parent()); } @Test void testEqualsIdentity() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 1.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Cut.java
} catch (ClassCastException wastNotComparableToOurType) { return false; } } return false; } // Prevent "missing hashCode" warning by explicitly forcing subclasses implement it @Override public abstract int hashCode(); /* * The implementation neither produces nor consumes any non-null instance of type C, so * casting the type parameter is safe. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 12.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/MediaTypeTest.kt
assertEquals("text/plain;boundary=foo;charset=utf-8", mediaType.toString()) assertEquals(mediaType, parse("text/plain;boundary=foo;charset=utf-8")) assertEquals( mediaType.hashCode(), parse("text/plain;boundary=foo;charset=utf-8").hashCode(), ) } @Test fun testValidParse() { assertMediaType("text/plain") assertMediaType("application/atom+xml; charset=utf-8")
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 7.5K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu May 22 16:18:11 UTC 2025 - 11.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/SynchronizedMapTest.java
public boolean equals(@Nullable Object obj) { assertTrue(Thread.holdsLock(mutex)); return super.equals(obj); } @Override public int hashCode() { assertTrue(Thread.holdsLock(mutex)); return super.hashCode(); } @Override public String toString() { assertTrue(Thread.holdsLock(mutex)); return super.toString(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 28 19:11:14 UTC 2025 - 5.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LegacyComparable.java
LegacyComparable that = (LegacyComparable) object; return this.value.equals(that.value); } return false; } @Override public int hashCode() { return value.hashCode(); } @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 2.5K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java
} /** {@inheritDoc} */ @Override public int hashCode() { int result = 17; result = 37 * result + getGroupId().hashCode(); result = 37 * result + getArtifactId().hashCode(); result = 37 * result + getType().hashCode(); if (getVersion() != null) { result = 37 * result + getVersion().hashCode(); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 9.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/BaseComparable.java
public class BaseComparable implements Comparable<BaseComparable>, Serializable { private final String s; public BaseComparable(String s) { this.s = s; } @Override public int hashCode() { // delegate to 's' return s.hashCode(); } @Override public boolean equals(@Nullable Object other) { if (other == null) { return false; } else if (other instanceof BaseComparable) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 1.6K bytes - Viewed (0)