- Sort Score
- Num 10 results
- Language All
Results 61 - 70 of 685 for HashCode (0.15 seconds)
-
compat/maven-builder-support/src/main/java/org/apache/maven/building/FileSource.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 15 18:51:29 GMT 2025 - 3K bytes - Click Count (0) -
android/guava/src/com/google/common/hash/ChecksumHashFunction.java
} @Override public HashCode hash() { long value = checksum.getValue(); if (bits == 32) { /* * The long returned from a 32-bit Checksum will have all 0s for its second word, so the * cast won't lose any information and is necessary to return a HashCode of the correct * size. */ return HashCode.fromInt((int) value); } else {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 2.7K bytes - Click Count (0) -
src/main/java/org/codelibs/core/misc/Tuple4.java
} @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((value1 == null) ? 0 : value1.hashCode()); result = prime * result + ((value2 == null) ? 0 : value2.hashCode()); result = prime * result + ((value3 == null) ? 0 : value3.hashCode()); result = prime * result + ((value4 == null) ? 0 : value4.hashCode());Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat May 10 01:32:17 GMT 2025 - 5.5K bytes - Click Count (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/JavaPathTypeTest.java
* Tests the {@code equals} and {@code hashCode} methods of options. */ @Test public void testEqualsHashCode() { JavaPathType.Modular foo1 = JavaPathType.patchModule("foo"); JavaPathType.Modular foo2 = JavaPathType.patchModule("foo"); JavaPathType.Modular bar = JavaPathType.patchModule("bar"); assertEquals(foo1, foo2); assertEquals(foo1.hashCode(), foo2.hashCode());Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Nov 13 14:20:26 GMT 2025 - 2.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/SecurityBlobTest.java
assertEquals("deadbeef", blob.toString(), "toString() should reflect underlying content"); assertEquals(data.hashCode(), blob.hashCode(), "hashCode should equal the array's hashCode"); } // Validates equals() returns true for same-sized, equal-content blobs @Test @DisplayName("equals: identical content and size -> true")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.4K bytes - Click Count (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
UniAddress uniAddress1 = new UniAddress(inetAddress1); assertEquals(inetAddress1.hashCode(), uniAddress1.hashCode()); UniAddress uniAddress2 = new UniAddress(nbtAddress1); assertEquals(nbtAddress1.hashCode(), uniAddress2.hashCode()); } @Test void equalsShouldReturnTrueForSameWrappedAddress() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 16.4K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ArtifactModelSource.java
this.version = version; this.hashCode = Objects.hash(groupId, artifactId, version); } public String getGroupId() { return groupId; } public String getArtifactId() { return artifactId; } public String getVersion() { return version; } @Override public int hashCode() { return hashCode; } @OverrideCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 2.8K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSet.java
&& isHashCodeFast() && ((ImmutableSet<?>) object).isHashCodeFast() && hashCode() != object.hashCode()) { return false; } return Sets.equalsImpl(this, object); } @Override public int hashCode() { return Sets.hashCodeImpl(this); } // This declaration is needed to make Set.iterator() and // ImmutableCollection.iterator() consistent.
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Oct 11 14:54:00 GMT 2025 - 22.4K bytes - Click Count (0) -
compat/maven-builder-support/src/main/java/org/apache/maven/building/StringSource.java
public StringSource(CharSequence content, String location) { this.content = (content != null) ? content.toString() : ""; this.location = (location != null) ? location : "(memory)"; this.hashCode = this.content.hashCode(); } @Override public InputStream getInputStream() throws IOException { return new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8)); } @Override
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jan 15 18:51:29 GMT 2025 - 3K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/FunctionsTest.java
// Might be nice (eventually) to have: // assertEquals(c1, c2); // But for now, settle for this: assertEquals(c1.hashCode(), c2.hashCode()); assertEquals(c1.apply(1.0f), c2.apply(1.0f)); assertEquals(c1.apply(5.0f), c2.apply(5.0f)); } public void testComposeOfPredicateAndFunctionIsAssociative() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 16.2K bytes - Click Count (0)