- Sort Score
- Num 10 results
- Language All
Results 291 - 300 of 484 for hashCode (0.04 seconds)
-
guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java
return "26"; } /** Helper assertion comparing two maps */ private void assertMapsEqual(Map<?, ?> expected, Map<?, ?> map) { assertEquals(expected, map); assertEquals(expected.hashCode(), map.hashCode()); assertEquals(expected.entrySet(), map.entrySet()); // Assert that expectedValues > mapValues and that // mapValues > expectedValues; i.e. that expectedValues == mapValues.
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Oct 28 16:03:47 GMT 2025 - 12.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ComparatorsTest.java
} private static class Foo implements Comparable<Foo> { final Integer value; Foo(int value) { this.value = value; } @Override public int hashCode() { return value.hashCode(); } @Override public boolean equals(@Nullable Object o) { return (o instanceof Foo) && ((Foo) o).value.equals(value); } @Override
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Apr 12 15:07:59 GMT 2025 - 6.4K bytes - Click Count (0) -
android/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;Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractTable.java
} } @Override public boolean equals(@Nullable Object obj) { return Tables.equalsImpl(this, obj); } @Override public int hashCode() { return cellSet().hashCode(); } /** Returns the string representation {@code rowMap().toString()}. */ @Override public String toString() { return rowMap().toString(); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 6K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ActivationOSTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code ActivationOS}. * */ class ActivationOSTest { @Test void testHashCodeNullSafe() { new ActivationOS().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new ActivationOS().equals(null)); new ActivationOS().equals(new ActivationOS()); } @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 1.6K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/PluginConfigurationTest.java
/** * Tests {@code PluginConfiguration}. * */ class PluginConfigurationTest { @Test void testHashCodeNullSafe() { new PluginConfiguration().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new PluginConfiguration().equals(null)); new PluginConfiguration().equals(new PluginConfiguration()); } @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 1.7K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ReportPluginTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code ReportPlugin}. * */ class ReportPluginTest { @Test void testHashCodeNullSafe() { new ReportPlugin().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new ReportPlugin().equals(null)); new ReportPlugin().equals(new ReportPlugin()); } @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 1.6K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/ReportingTest.java
import static org.junit.jupiter.api.Assertions.assertTrue; /** * Tests {@code Reporting}. * */ class ReportingTest { @Test void testHashCodeNullSafe() { new Reporting().hashCode(); } @Test void testEqualsNullSafe() { assertFalse(new Reporting().equals(null)); new Reporting().equals(new Reporting()); } @TestCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Sep 17 10:01:14 GMT 2025 - 1.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Sets.java
} }; } /** An implementation for {@link Set#hashCode()}. */ static int hashCodeImpl(Set<?> s) { int hashCode = 0; for (Object o : s) { hashCode += o != null ? o.hashCode() : 0; hashCode = ~~hashCode; // Needed to deal with unusual integer overflow in GWT. } return hashCode; } /** An implementation for {@link Set#equals(Object)}. */Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 81.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java
return standardToString(); } @Override public boolean equals(@Nullable Object object) { return standardEquals(object); } @Override public int hashCode() { return standardHashCode(); } @Override public boolean setCount(T element, int oldCount, int newCount) { return standardSetCount(element, oldCount, newCount); }
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jul 16 20:34:52 GMT 2025 - 11.8K bytes - Click Count (0)