- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 559 for hashcode (0.22 sec)
-
android/guava/src/com/google/common/collect/AbstractMultimap.java
* * <p>The hash code of a multimap is defined as the hash code of the map view, as returned by * {@link Multimap#asMap}. * * @see Map#hashCode */ @Override public int hashCode() { return asMap().hashCode(); } /** * Returns a string representation of the multimap, generated by calling {@code toString} on the * map returned by {@link Multimap#asMap}. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 6.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractTableReadTest.java
.addEqualityGroup(table, hashCopy, reordered) .addEqualityGroup(smaller) .addEqualityGroup(swapOuter) .addEqualityGroup(swapValues) .testEquals(); } public void testHashCode() { table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c'); int expected = Objects.hashCode("foo", 1, 'a') + Objects.hashCode("bar", 1, 'b')
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 6.6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ModelTest.java
import static org.junit.jupiter.api.Assertions.assertNull; /** * Tests {@code Model}. * */ class ModelTest { @Test void testHashCodeNullSafe() { new Model().hashCode(); } @Test void testBuild() { Model model = new Model(); Build build = new Build(); build.setOutputDirectory("myOutputDirectory"); model.setBuild(build);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/features/TesterRequirements.java
return this.presentFeatures.equals(that.presentFeatures) && this.absentFeatures.equals(that.absentFeatures); } return false; } @Override public int hashCode() { return presentFeatures.hashCode() * 31 + absentFeatures.hashCode(); } @Override public String toString() { return "{TesterRequirements: present=" + presentFeatures + ", absent=" + absentFeatures + "}"; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 2.5K bytes - Viewed (0) -
guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Apr 19 19:24:36 UTC 2023 - 11.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/MapDifference.java
*/ @Override boolean equals(@CheckForNull Object other); /** * The hash code equals the value {@code Arrays.asList(leftValue(), rightValue()).hashCode()}. */ @Override int hashCode(); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Aug 04 13:28:27 UTC 2021 - 3.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersTest.kt
Headers.Builder() .add("Connection", "close") .add("Transfer-Encoding", "chunked") .build() assertThat(headers2).isEqualTo(headers1) assertThat(headers2.hashCode()).isEqualTo(headers1.hashCode()) } @Test fun headersNotEquals() { val headers1 = Headers.Builder() .add("Connection", "close") .add("Transfer-Encoding", "chunked") .build()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.6K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 31 19:11:50 UTC 2023 - 6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/DependencyTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Dependency}. * */ class DependencyTest { @Test void testHashCodeNullSafe() { new Dependency().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new Dependency().equals(null)); new Dependency().equals(new Dependency()); } @Test
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.6K bytes - Viewed (0) -
compat/maven-model/src/test/java/org/apache/maven/model/DistributionManagementTest.java
/** * Tests {@code DistributionManagement}. * */ class DistributionManagementTest { @Test void testHashCodeNullSafe() { new DistributionManagement().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new DistributionManagement().equals(null)); new DistributionManagement().equals(new DistributionManagement()); }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 1.7K bytes - Viewed (0)