- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 554 for HashCode (0.07 sec)
-
compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/Parameter.java
public String getDeprecated() { return deprecated; } public void setDeprecated(String deprecated) { this.deprecated = deprecated; } public int hashCode() { return name.hashCode(); } public boolean equals(Object other) { return (other instanceof Parameter) && getName().equals(((Parameter) other).getName()); } public String getAlias() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.1K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetHashCodeTester.java
int expectedHashCode = 0; for (E element : getSampleElements()) { expectedHashCode += ((element == null) ? 0 : element.hashCode()); } assertEquals( "A Set's hashCode() should be the sum of those of its elements.", expectedHashCode, getSet().hashCode()); } @CollectionSize.Require(absent = CollectionSize.ZERO) @CollectionFeature.Require(ALLOWS_NULL_VALUES)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/MultimapEqualsTester.java
.addEqualityGroup(multimap()) .addEqualityGroup(getSubjectGenerator().create()) .testEquals(); } public void testHashCodeMatchesAsMap() { assertEquals(multimap().asMap().hashCode(), multimap().hashCode()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 3.5K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/IteratorBenchmark.java
for (int index = 0; index < size; index++) { sum += array[index].hashCode(); } } return sum; } @Benchmark int arrayIndexedLength(int reps) { int sum = 0; for (int i = 0; i < reps; i++) { for (int index = 0; index < array.length; index++) { sum += array[index].hashCode(); } } return sum; } @Benchmark
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 3.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/ArrayMap.java
@Override public V put(final K key, final V value) { int hashCode = 0; int index = 0; if (key != null) { hashCode = key.hashCode(); index = (hashCode & 0x7FFFFFFF) % mapTable.length; for (Entry<K, V> e = mapTable[index]; e != null; e = e.next) { if (e.hashCode == hashCode && key.equals(e.key)) { return swapValue(e, value);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 20.6K bytes - Viewed (0) -
guava-testlib/test/com/google/common/testing/EqualsTesterTest.java
assertErrorMessage( e, "the Object#hashCode (" + a.hashCode() + ") of " + a + " [group 1, item 1] must be equal to the Object#hashCode (" + b.hashCode() + ") of " + b); return; } fail("Should get invalid hashCode error"); } public void testNullEqualityGroup() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 15:00:32 UTC 2024 - 12.9K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java
result = 31 * result + a.getGroupId().hashCode(); result = 31 * result + a.getArtifactId().hashCode(); result = 31 * result + a.getType().hashCode(); if (a.getVersion() != null) { result = 31 * result + a.getVersion().hashCode(); } result = 31 * result + (a.getClassifier() != null ? a.getClassifier().hashCode() : 0);
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 11.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java
assertEquals( "A Map's hashCode() should be the sum of those of its entries (where " + "a null element in an entry counts as having a hash of zero).", expectedHashCode, getMap().hashCode()); } private static int hash(Entry<?, ?> e) { return (e.getKey() == null ? 0 : e.getKey().hashCode()) ^ (e.getValue() == null ? 0 : e.getValue().hashCode()); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 20:12:35 UTC 2024 - 3K bytes - Viewed (0) -
guava/src/com/google/common/reflect/AbstractInvocationHandler.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jan 05 17:43:40 UTC 2022 - 5.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/ForwardingWrapperTester.java
} // The interface could be package-private or private. // filter out equals/hashCode/toString if (method.getName().equals("equals") && method.getParameterTypes().length == 1 && method.getParameterTypes()[0] == Object.class) { continue; } if (method.getName().equals("hashCode") && method.getParameterTypes().length == 0) { continue; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 13:00:28 UTC 2024 - 9.1K bytes - Viewed (0)