- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 585 for hashCode (0.78 sec)
-
guava/src/com/google/common/hash/AbstractCompositeHashFunction.java
this.functions = functions; } /** * Constructs a {@code HashCode} from the {@code Hasher} objects of the functions. Each of them * has consumed the entire input and they are ready to output a {@code HashCode}. The order of the * hashers are the same order as the functions given to the constructor. */ // this could be cleaner if it passed HashCode[], but that would create yet another array...Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 5.3K bytes - Viewed (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) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 1.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Request.java
@Nullable RequestTrace getTrace(); /** * Returns a hashcode value for this request, based on all significant fields. * Implementations must ensure that if two requests are equal according to * {@link #equals(Object)}, they have the same hashcode. * * @return a hash code value for this request */ @Override int hashCode(); /**Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Cut.java
} catch (ClassCastException wastNotComparableToOurType) { return false; } } return false; } // Prevent "missing hashCode" warning by explicitly forcing subclasses implement it @Override public abstract int hashCode(); /* * The implementation neither produces nor consumes any non-null instance of type C, so * casting the type parameter is safe. */
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Sep 22 18:35:44 UTC 2025 - 12.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/Fingerprint2011Test.java
assertEquals(hashCode, hasher.hash().asLong()); hasher = HASH_FN.newHasher(); hasher.putLong(0x0000000001000101L); assertEquals(hashCode, hasher.hash().asLong()); hasher = HASH_FN.newHasher(); hasher .putShort((short) 0x0101) .putShort((short) 0x0100) .putShort((short) 0x0000) .putShort((short) 0x0000); assertEquals(hashCode, hasher.hash().asLong());
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 7.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java
for (E element : getOrderedElements()) { expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode()); } assertEquals( "A List's hashCode() should be computed from those of its elements.", expectedHashCode, getList().hashCode()); } /** * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/SipHashFunction.java
return (c == other.c) && (d == other.d) && (k0 == other.k0) && (k1 == other.k1); } return false; } @Override public int hashCode() { return (int) (getClass().hashCode() ^ c ^ d ^ k0 ^ k1); } private static final class SipHasher extends AbstractStreamingHasher { private static final int CHUNK_SIZE = 8; // The number of compression rounds.
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 5.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/TypesTest.java
new EqualsTester().addEqualityGroup(jvmType, ourType).testEquals(); assertEquals(jvmType.toString(), ourType.toString()); assertEquals(jvmType.hashCode(), ourType.hashCode()); assertEquals(HashMap.class, ourType.getRawType()); assertThat(ourType.getActualTypeArguments()) .asList() .containsExactlyElementsIn(asList(jvmType.getActualTypeArguments()))Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Feb 11 19:03:19 UTC 2025 - 15.4K bytes - Viewed (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
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8K bytes - Viewed (0) -
src/test/java/jcifs/smb/MIENameTest.java
assertEquals(expected, parsed, "Parsed object should equal expected"); assertEquals(name, parsed.toString(), "toString should return the name"); assertEquals(testOid().hashCode(), parsed.hashCode(), "hashCode should derive from OID"); } @Test @DisplayName("Parses empty name length (NAME_LEN=0) as empty string") void parseEmptyName() { // Arrange String name = "";
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0)