- Sort Score
- Result 10 results
- Languages All
Results 331 - 340 of 585 for hashCode (0.43 sec)
-
compat/maven-model/src/test/java/org/apache/maven/model/DeploymentRepositoryTest.java
/** * Tests {@code DeploymentRepository}. * */ class DeploymentRepositoryTest { @Test void testHashCodeNullSafe() { new DeploymentRepository().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new DeploymentRepository().equals(null)); new DeploymentRepository().equals(new DeploymentRepository()); } @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/NotifierTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Notifier}. * */ class NotifierTest { @Test void testHashCodeNullSafe() { new Notifier().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new Notifier().equals(null)); new Notifier().equals(new Notifier()); } @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) -
android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java
assertTrue(map.entrySet().contains(immutableEntry("a", new IntHolder(3)))); Map<String, Integer> intMap = ImmutableMap.of("a", 3, "b", 2); assertEquals(intMap.hashCode(), map.entrySet().hashCode()); assertEquals(intMap.hashCode(), map.hashCode()); } @J2ktIncompatible @GwtIncompatible // SerializableTester public void testViewSerialization() {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 36.7K bytes - Viewed (0) -
compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java
assertEquals(0, c1.compareTo(c2), "expected " + v1 + " == " + v2); assertEquals(0, c2.compareTo(c1), "expected " + v2 + " == " + v1); assertEquals(c1.hashCode(), c2.hashCode(), "expected same hashcode for " + v1 + " and " + v2); assertEquals(c1, c2, "expected " + v1 + ".equals( " + v2 + " )"); assertEquals(c2, c1, "expected " + v2 + ".equals( " + v1 + " )"); }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Mar 21 04:56:21 UTC 2025 - 17.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ByFunctionOrdering.java
ByFunctionOrdering<?, ?> that = (ByFunctionOrdering<?, ?>) object; return this.function.equals(that.function) && this.ordering.equals(that.ordering); } return false; } @Override public int hashCode() { return Objects.hash(function, ordering); } @Override public String toString() { return ordering + ".onResultOf(" + function + ")"; }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 2.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/lang/MethodUtil.java
} /** * Returns whether the method is the {@literal hashCode()} method. * * @param method * The method. Cannot be {@literal null} * @return {@literal true} if the method is {@literal hashCode()} */ public static boolean isHashCodeMethod(final Method method) { assertArgumentNotNull("method", method);Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 12.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/query/DefaultQueryBuilder.java
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/Interners.java
this.interner = interner; } @Override public E apply(E input) { return interner.intern(input); } @Override public int hashCode() { return interner.hashCode(); } @Override public boolean equals(@Nullable Object other) { if (other instanceof InternerFunction) { InternerFunction<?> that = (InternerFunction<?>) other;Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
void testEqualsSelf() { assertEquals(data1, data1); } @Test @DisplayName("Should have same hashCode for equal objects") void testHashCodeConsistency() { assertEquals(data1.hashCode(), data2.hashCode()); } @Test @DisplayName("Should not be equal to null") void testNotEqualToNull() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/OrganizationTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Organization}. * */ class OrganizationTest { @Test void testHashCodeNullSafe() { new Organization().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new Organization().equals(null)); new Organization().equals(new Organization()); } @TestRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 2.7K bytes - Viewed (0)