- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 1,660 for hash_code (0.32 sec)
-
guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java
assertEquals( "multiset.entrySet() has incorrect hash code", 0, getMultiset().entrySet().hashCode()); } @CollectionSize.Require(ONE) public void testEntrySet_hashCode_size1() { assertEquals( "multiset.entrySet() has incorrect hash code", 1 ^ e0().hashCode(), getMultiset().entrySet().hashCode()); } public void testEquals_yes() { assertTrue(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jan 09 20:10:38 UTC 2018 - 3.9K bytes - Viewed (0) -
guava/src/com/google/common/base/Objects.java
* public int hashCode() { * return Objects.hashCode(getX(), getY(), getZ()); * } * }</pre> * * <p><b>Warning:</b> When a single object is supplied, the returned hash code does not equal the * hash code of that object. * * <p><b>Java 7+ users:</b> This method should be treated as deprecated; use {@link * java.util.Objects#hash} instead. */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 15 16:12:13 UTC 2024 - 2.9K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/ImmutableModuleSources.java
throw new AssertionError("value must not be null"); } this.previous = previous; this.value = value; this.hashCode = 31 * (previous == null ? 0 : previous.hashCode) + (value == null ? 0 : value.hashCode()); this.size = previous == null ? 0 : 1 + previous.size; } public static ImmutableModuleSources of(ModuleSources sources, ModuleSource source) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 4K bytes - Viewed (0) -
platforms/software/resources-sftp/src/main/java/org/gradle/internal/resource/transport/sftp/SftpHost.java
return false; } return true; } @Override public int hashCode() { int result = hostname.hashCode(); result = 31 * result + port; result = 31 * result + (username != null ? username.hashCode() : 0); result = 31 * result + (password != null ? password.hashCode() : 0); return result; } @Override public String toString() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingMapEntry.java
/** * A sensible definition of {@link #hashCode()} in terms of {@link #getKey()} and {@link * #getValue()}. If you override either of these methods, you may wish to override {@link * #hashCode()} to forward to this implementation. * * @since 7.0 */ protected int standardHashCode() { K k = getKey(); V v = getValue(); return ((k == null) ? 0 : k.hashCode()) ^ ((v == null) ? 0 : v.hashCode()); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Mar 19 19:28:11 UTC 2024 - 4.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/simple/DefaultModuleIdSetExclude.java
private final Set<ModuleIdentifier> moduleIds; private final int hashCode; static ModuleIdSetExclude of(Set<ModuleIdentifier> ids) { return new DefaultModuleIdSetExclude(ImmutableSet.copyOf(ids)); } private DefaultModuleIdSetExclude(ImmutableSet<ModuleIdentifier> moduleIds) { this.moduleIds = moduleIds; this.hashCode = moduleIds.hashCode(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableBiMap.java
int hashCode = 0; for (int i = 0; i < n; i++) { // requireNonNull is safe because the first `n` elements have been filled in. Entry<K, V> entry = requireNonNull(entryArray[i]); K key = entry.getKey(); V value = entry.getValue(); checkEntryNotNull(key, value); int keyHash = key.hashCode(); int valueHash = value.hashCode();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 11.2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Predicates.java
public boolean apply(CharSequence t) { return pattern.matcher(t).find(); } @Override public int hashCode() { // Pattern uses Object.hashCode, so we have to reach // inside to build a hashCode consistent with equals. return Objects.hashCode(pattern.pattern(), pattern.flags()); } @Override public boolean equals(@CheckForNull Object obj) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 23.1K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/simple/DefaultGroupSetExclude.java
import java.util.Set; final class DefaultGroupSetExclude implements GroupSetExclude { private final Set<String> groups; private final int hashCode; DefaultGroupSetExclude(Set<String> groups) { this.groups = groups; this.hashCode = groups.hashCode(); } @Override public boolean equals(Object o) { if (this == o) { return true; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/base/Predicates.java
public boolean apply(CharSequence t) { return pattern.matcher(t).find(); } @Override public int hashCode() { // Pattern uses Object.hashCode, so we have to reach // inside to build a hashCode consistent with equals. return Objects.hashCode(pattern.pattern(), pattern.flags()); } @Override public boolean equals(@CheckForNull Object obj) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 23.1K bytes - Viewed (0)