- Sort Score
- Num 10 results
- Language All
Results 191 - 200 of 685 for HashCode (0.05 seconds)
-
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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 3K bytes - Click Count (0) -
android/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) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 1.6K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BitString.kt
internal data class BitString( val byteString: ByteString, /** 0-7 unused bits in the last byte. */ val unusedBitsCount: Int, ) { // Avoid Long.hashCode(long) which isn't available on Android 5. override fun hashCode(): Int { var result = 0 result = 31 * result + byteString.hashCode() result = 31 * result + unusedBitsCount return result }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.1K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ForwardingMap.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Aug 06 17:32:30 GMT 2025 - 9.8K bytes - Click Count (0) -
src/main/java/jcifs/netbios/Name.java
this.scope = sb.toString(); return srcIndex - start; } @Override public int hashCode() { int result = this.name.hashCode(); result += 65599 * this.hexCode; result += 65599 * this.srcHashCode; /* * hashCode is different depending * on where it came from
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java
} @Override @GwtIncompatible // not used in GWT boolean isHashCodeFast() { return map().isHashCodeFast(); } @Override public int hashCode() { return map().hashCode(); } @GwtIncompatible @J2ktIncompatible @Override Object writeReplace() { return new EntrySetSerializedForm<>(map()); } @GwtIncompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 3.7K bytes - Click Count (0) -
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 + "}"; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 20:54:16 GMT 2025 - 2.6K bytes - Click Count (0) -
src/test/java/jcifs/netbios/NbtAddressTest.java
NbtAddress nbtAddress2 = new NbtAddress(mockName2, testAddressInt, true, NbtAddress.B_NODE); // Different name, group, nodeType assertEquals(nbtAddress1.hashCode(), nbtAddress2.hashCode()); assertEquals(testAddressInt, nbtAddress1.hashCode()); } @Test void testEquals() { // Test equals method mockName = new Name(mockConfig, "TEST1", 0x20, null);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/ComparatorOrdering.java
ComparatorOrdering<?> that = (ComparatorOrdering<?>) object; return this.comparator.equals(that.comparator); } return false; } @Override public int hashCode() { return comparator.hashCode(); } @Override public String toString() { return comparator.toString(); } @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 1.9K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
assertNotEquals(auth1, new Object()); } // Test hashCode method @Test void testHashCode() { NtlmPasswordAuthentication auth1 = new NtlmPasswordAuthentication("DOMAIN", "user", "password"); NtlmPasswordAuthentication auth2 = new NtlmPasswordAuthentication("DOMAIN", "user", "password"); assertEquals(auth1.hashCode(), auth2.hashCode()); } // Test getPreNTLMResponse @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.7K bytes - Click Count (0)