- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 585 for hashCode (0.05 sec)
-
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 Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Dec 16 08:09:30 UTC 2025 - 2.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java
} } @Nested @DisplayName("Equals and HashCode Tests") class EqualsHashCodeTests { @Test @DisplayName("Should calculate hashCode from MID") void testHashCode() { testMessage.setMid(12345L); assertEquals(12345, testMessage.hashCode()); } @Test @DisplayName("Should be equal when MIDs match")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 39.5K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java
UnhashableObject that = (UnhashableObject) object; return this.value == that.value; } return false; } @Override public int hashCode() { throw new UnsupportedOperationException(); } // needed because otherwise Object.toString() calls hashCode() @Override public String toString() { return "DontHashMe" + value; } @Override public int compareTo(UnhashableObject o) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Apr 10 20:12:40 UTC 2025 - 1.6K bytes - Viewed (0) -
android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java
try { SerializableTester.reserializeAndAssert(orig); errorNotThrown = true; } catch (AssertionFailedError error) { // expected assertContains("must be equal to the Object#hashCode", error.getMessage()); } assertFalse(errorNotThrown); } public void testObjectWhichIsEqualButChangesClass() { ObjectWhichIsEqualButChangesClass orig = new ObjectWhichIsEqualButChangesClass();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/HashingOutputStream.java
hasher.putBytes(bytes, off, len); out.write(bytes, off, len); } /** * Returns the {@link HashCode} based on the data written to this stream. The result is * unspecified if this method is called more than once on the same instance. */ public HashCode hash() { return hasher.hash(); } // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingObject.java
* href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. The {@link * #delegate()} method must be overridden to return the instance being decorated. * * <p>This class does <i>not</i> forward the {@code hashCode} and {@code equals} methods through to * the backing object, but relies on {@code Object}'s implementation. This is necessary to preserve
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3K bytes - Viewed (0) -
guava/src/com/google/common/reflect/TypeParameter.java
Type type = capture(); checkArgument(type instanceof TypeVariable, "%s should be a type variable.", type); this.typeVariable = (TypeVariable<?>) type; } @Override public final int hashCode() { return typeVariable.hashCode(); } @Override public final boolean equals(@Nullable Object o) { if (o instanceof TypeParameter) { TypeParameter<?> that = (TypeParameter<?>) o;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 2.4K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileModelSource.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Apr 14 13:42:17 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessUserLocaleProcessProvider.java
// ============== @Override public String toString() { final String hash = Integer.toHexString(hashCode()); return DfTypeUtil.toClassTitle(this) + ":{acceptCookieLocale=" + isAcceptCookieLocale() + "}@" + hash; }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 2.9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/Pair.java
return "{" + first + ", " + second + "}"; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((first == null) ? 0 : first.hashCode()); result = prime * result + ((second == null) ? 0 : second.hashCode()); return result; } @Override public boolean equals(final Object obj) {
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3.5K bytes - Viewed (0)