Home
last modified time | relevance | path

Searched refs:hashCode (Results 1 – 25 of 2180) sorted by relevance

12345678910>>...88

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/visitor/
DObjectIdentityHashCodeVisitor.java42 public static int hashCode(final Node node) { in hashCode() method in ObjectIdentityHashCodeVisitor
48 return n.hashCode(); in visit()
53 return n.hashCode(); in visit()
58 return n.hashCode(); in visit()
63 return n.hashCode(); in visit()
68 return n.hashCode(); in visit()
73 return n.hashCode(); in visit()
78 return n.hashCode(); in visit()
83 return n.hashCode(); in visit()
88 return n.hashCode(); in visit()
[all …]
/external/grpc-grpc-java/context/src/test/java/io/grpc/
DPersistentHashArrayMappedTrieTest.java39 Node<Key, Object> ret = leaf.put(key, value2, key.hashCode(), 0); in leaf_replace()
41 assertSame(value2, ret.get(key, key.hashCode(), 0)); in leaf_replace()
43 assertSame(value1, leaf.get(key, key.hashCode(), 0)); in leaf_replace()
56 Node<Key, Object> ret = leaf.put(key2, value2, key2.hashCode(), 0); in leaf_collision()
58 assertSame(value1, ret.get(key1, key1.hashCode(), 0)); in leaf_collision()
59 assertSame(value2, ret.get(key2, key2.hashCode(), 0)); in leaf_collision()
61 assertSame(value1, leaf.get(key1, key1.hashCode(), 0)); in leaf_collision()
62 assertSame(null, leaf.get(key2, key2.hashCode(), 0)); in leaf_collision()
75 Node<Key, Object> ret = leaf.put(key2, value2, key2.hashCode(), 0); in leaf_insert()
77 assertSame(value1, ret.get(key1, key1.hashCode(), 0)); in leaf_insert()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/
DEngineKey.java27 private int hashCode; field in EngineKey
100 public int hashCode() { in hashCode() method in EngineKey
101 if (hashCode == 0) { in hashCode()
102 hashCode = id.hashCode(); in hashCode()
103 hashCode = 31 * hashCode + signature.hashCode(); in hashCode()
104 hashCode = 31 * hashCode + width; in hashCode()
105 hashCode = 31 * hashCode + height; in hashCode()
106hashCode = 31 * hashCode + (cacheDecoder != null ? cacheDecoder .getId().hashCode() : 0); in hashCode()
107hashCode = 31 * hashCode + (decoder != null ? decoder .getId().hashCode() : 0); in hashCode()
108hashCode = 31 * hashCode + (transformation != null ? transformation.getId().hashCode() : 0); in hashCode()
[all …]
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhonenumberTest.java39 assertEquals(numberA.hashCode(), numberB.hashCode()); in testEqualSimpleNumber()
51 assertEquals(numberA.hashCode(), numberB.hashCode()); in testEqualWithItalianLeadingZeroSetToDefault()
62 assertEquals(numberA.hashCode(), numberB.hashCode()); in testEqualWithCountryCodeSourceSet()
73 assertFalse(numberA.hashCode() == numberB.hashCode()); in testNonEqualWithItalianLeadingZeroSetToTrue()
88 assertFalse(numberA.hashCode() == numberB.hashCode()); in testNonEqualWithDifferingRawInput()
99 assertFalse(numberA.hashCode() == numberB.hashCode()); in testNonEqualWithPreferredDomesticCarrierCodeSetToDefault()
110 assertEquals(numberA.hashCode(), numberB.hashCode()); in testEqualWithPreferredDomesticCarrierCodeSetToDefault()
/external/guava/guava-tests/test/com/google/common/hash/
DHashCodeTest.java94 HashCode hashCode = HashCode.fromBytes(bytes); in testFromBytes_copyOccurs() local
98 assertEquals(expectedInt, hashCode.asInt()); in testFromBytes_copyOccurs()
99 assertEquals(expectedToString, hashCode.toString()); in testFromBytes_copyOccurs()
103 assertEquals(expectedInt, hashCode.asInt()); in testFromBytes_copyOccurs()
104 assertEquals(expectedToString, hashCode.toString()); in testFromBytes_copyOccurs()
109 HashCode hashCode = HashCode.fromBytesNoCopy(bytes); in testFromBytesNoCopy_noCopyOccurs() local
111 assertEquals(0x0000abcd, hashCode.asInt()); in testFromBytesNoCopy_noCopyOccurs()
112 assertEquals("cdab0000", hashCode.toString()); in testFromBytesNoCopy_noCopyOccurs()
116 assertEquals(0x0000ab00, hashCode.asInt()); in testFromBytesNoCopy_noCopyOccurs()
117 assertEquals("00ab0000", hashCode.toString()); in testFromBytesNoCopy_noCopyOccurs()
[all …]
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/
DObjectsTest.java47 int h1 = Objects.hashCode(1, "two", 3.0); in testHashCode()
48 int h2 = Objects.hashCode( in testHashCode()
54 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2)); in testHashCode()
55 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, null, 2)); in testHashCode()
56 assertTrue(Objects.hashCode(1, null, 2) != Objects.hashCode(1, 2)); in testHashCode()
57 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(3, 2, 1)); in testHashCode()
58 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(2, 3, 1)); in testHashCode()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DStyleData.java89 public int hashCode() { in hashCode() method in StyleData
90 int hashCode = 0; in hashCode() local
91 hashCode = 31 * hashCode + Strings.nullToEmpty(packageName).hashCode(); in hashCode()
92 hashCode = 31 * hashCode + Strings.nullToEmpty(name).hashCode(); in hashCode()
93 hashCode = 31 * hashCode + Strings.nullToEmpty(parent).hashCode(); in hashCode()
94 hashCode = 31 * hashCode + items.size(); in hashCode()
95 return hashCode; in hashCode()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java307 int hashCode = 0; in _hashCode() local
308 hashCode ^= _hashCodeHelper(compactCustomData); in _hashCode()
309 hashCode ^= _hashCodeHelper(compactStyle); in _hashCode()
310 hashCode ^= _hashCodeHelper(currency); in _hashCode()
311 hashCode ^= _hashCodeHelper(currencyPluralInfo); in _hashCode()
312 hashCode ^= _hashCodeHelper(currencyUsage); in _hashCode()
313 hashCode ^= _hashCodeHelper(decimalPatternMatchRequired); in _hashCode()
314 hashCode ^= _hashCodeHelper(decimalSeparatorAlwaysShown); in _hashCode()
315 hashCode ^= _hashCodeHelper(exponentSignAlwaysShown); in _hashCode()
316 hashCode ^= _hashCodeHelper(formatWidth); in _hashCode()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalFormatProperties.java312 int hashCode = 0; in _hashCode() local
313 hashCode ^= _hashCodeHelper(compactCustomData); in _hashCode()
314 hashCode ^= _hashCodeHelper(compactStyle); in _hashCode()
315 hashCode ^= _hashCodeHelper(currency); in _hashCode()
316 hashCode ^= _hashCodeHelper(currencyPluralInfo); in _hashCode()
317 hashCode ^= _hashCodeHelper(currencyUsage); in _hashCode()
318 hashCode ^= _hashCodeHelper(decimalPatternMatchRequired); in _hashCode()
319 hashCode ^= _hashCodeHelper(decimalSeparatorAlwaysShown); in _hashCode()
320 hashCode ^= _hashCodeHelper(exponentSignAlwaysShown); in _hashCode()
321 hashCode ^= _hashCodeHelper(formatWidth); in _hashCode()
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DTestUtil.java60 assertEquals(b1.hashCode(), b2.hashCode()); in assertEquivalent()
61 assertEquals(b1.hashCode(), b1.hashCode()); in assertEquivalent()
81 assertFalse(b1.hashCode() == b3.hashCode()); in assertEquivalent()
85 assertFalse(b1.hashCode() == b3.hashCode()); in assertEquivalent()
96 assertEquals(b1.hashCode(), b2.hashCode()); in assertEquivalent()
97 assertEquals(b1.hashCode(), b1.hashCode()); in assertEquivalent()
118 assertFalse(b1.hashCode() == b3.hashCode()); in assertEquivalent()
122 assertFalse(b1.hashCode() == b3.hashCode()); in assertEquivalent()
/external/guava/guava-tests/test/com/google/common/base/
DObjectsTest.java49 int h1 = Objects.hashCode(1, "two", 3.0); in testHashCode()
50 int h2 = Objects.hashCode( in testHashCode()
56 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2)); in testHashCode()
57 assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, null, 2)); in testHashCode()
58 assertTrue(Objects.hashCode(1, null, 2) != Objects.hashCode(1, 2)); in testHashCode()
59 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(3, 2, 1)); in testHashCode()
60 assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(2, 3, 1)); in testHashCode()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/base/reference/
DBaseMethodReference.java45 public int hashCode() { in hashCode() method in BaseMethodReference
46 int hashCode = getDefiningClass().hashCode(); in hashCode() local
47 hashCode = hashCode*31 + getName().hashCode(); in hashCode()
48 hashCode = hashCode*31 + getReturnType().hashCode(); in hashCode()
49 return hashCode*31 + getParameterTypes().hashCode(); in hashCode()
DBaseFieldReference.java42 public int hashCode() { in hashCode() method in BaseFieldReference
43 int hashCode = getDefiningClass().hashCode(); in hashCode() local
44 hashCode = hashCode*31 + getName().hashCode(); in hashCode()
45 return hashCode*31 + getType().hashCode(); in hashCode()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLazyFieldTest.java50 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCode()
52 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCode()
55 assertNotEqual(message.hashCode(), lazyField.hashCode()); in testHashCode()
61 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCodeEx()
63 assertEquals(message.hashCode(), lazyField.hashCode()); in testHashCodeEx()
66 assertNotEqual(message.hashCode(), lazyField.hashCode()); in testHashCodeEx()
/external/guava/guava-tests/test/com/google/common/collect/
DAbstractMapEntryTest.java82 assertEquals(control("foo", 1).hashCode(), entry("foo", 1).hashCode());
83 assertEquals(control("bar", 2).hashCode(), entry("bar", 2).hashCode());
87 assertEquals(control(NK, 1).hashCode(), entry(NK, 1).hashCode());
88 assertEquals(control("bar", NV).hashCode(), entry("bar", NV).hashCode());
89 assertEquals(control(NK, NV).hashCode(), entry(NK, NV).hashCode());
/external/vogar/src/vogar/
DOutcome.java168 @Override public int hashCode() { in hashCode() method in Outcome
169 int hashCode = 17; in hashCode() local
170 hashCode = 37 * hashCode + outcomeName.hashCode(); in hashCode()
171 hashCode = 37 * hashCode + result.hashCode(); in hashCode()
172 hashCode = 37 * hashCode + output.hashCode(); in hashCode()
173 return hashCode; in hashCode()
/external/mockftpserver/tags/2.x_Before_IDEA/src/test/groovy/org/mockftpserver/fake/filesystem/
DFileInfoTest.groovy71 * Test the hashCode() method
74 assert fileInfoFile.hashCode() == fileInfoFile.hashCode()
75 assert fileInfoFile.hashCode() == FileInfo.forFile(NAME, SIZE, LAST_MODIFIED).hashCode()
76 …assert fileInfoFile.hashCode() == FileInfo.forFile(NAME, SIZE, new Date()).hashCode() // lastModi…
78 assert fileInfoFile.hashCode() != FileInfo.forFile("xyz", SIZE, LAST_MODIFIED).hashCode()
79 assert fileInfoFile.hashCode() != FileInfo.forFile(NAME, 33, LAST_MODIFIED).hashCode()
81 assert fileInfoDirectory.hashCode() == FileInfo.forDirectory(NAME, LAST_MODIFIED).hashCode()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DGeneratedMessageLite.java108 public int hashCode() { in hashCode() method in GeneratedMessageLite
112 memoizedHashCode = visitor.hashCode; in hashCode()
118 int hashCode(HashCodeVisitor visitor) { in hashCode() method in GeneratedMessageLite
120 int inProgressHashCode = visitor.hashCode; in hashCode()
121 visitor.hashCode = 0; in hashCode()
123 memoizedHashCode = visitor.hashCode; in hashCode()
124 visitor.hashCode = inProgressHashCode; in hashCode()
1817 private int hashCode = 0; field in GeneratedMessageLite.HashCodeVisitor
1822 hashCode = (53 * hashCode) + Internal.hashBoolean(mine); in visitBoolean()
1828 hashCode = (53 * hashCode) + mine; in visitInt()
[all …]
/external/guava/guava-testlib/test/com/google/common/testing/
DClassSanityTesterTest.java620 @Override public int hashCode() { in hashCode() method in HasAnInterface
621 return i.hashCode(); in hashCode()
675 @Override public int hashCode() { in hashCode() method in Wrapper
676 return wrapped.hashCode(); in hashCode()
756 @Override public int hashCode() { in hashCode() method in GoodEquals
773 @Override public int hashCode() { in hashCode() method in BadEquals
785 @Override public int hashCode() { in hashCode() method in SameIntegerInstance
786 return i.hashCode(); in hashCode()
807 @Override public int hashCode() { in hashCode() method in SameLongInstance
808 return i.hashCode(); in hashCode()
[all …]
/external/turbine/java/com/google/turbine/model/
DConst.java29 public abstract int hashCode(); in hashCode() method in Const
132 public int hashCode() { in hashCode() method in Const.BooleanValue
133 return Boolean.hashCode(value); in hashCode()
206 public int hashCode() { in hashCode() method in Const.IntValue
207 return Integer.hashCode(value); in hashCode()
279 public int hashCode() { in hashCode() method in Const.LongValue
280 return Long.hashCode(value); in hashCode()
352 public int hashCode() { in hashCode() method in Const.CharValue
353 return Character.hashCode(value); in hashCode()
425 public int hashCode() { in hashCode() method in Const.FloatValue
[all …]
/external/guice/core/src/com/google/inject/matcher/
DMatchers.java85 public int hashCode() { in hashCode() method in Matchers.Not
86 return -delegate.hashCode(); in hashCode()
132 public int hashCode() { in hashCode() method in Matchers.AnnotatedWithType
133 return 37 * annotationType.hashCode(); in hashCode()
171 public int hashCode() { in hashCode() method in Matchers.AnnotatedWith
172 return 37 * annotation.hashCode(); in hashCode()
206 public int hashCode() { in hashCode() method in Matchers.SubclassesOf
207 return 37 * superclass.hashCode(); in hashCode()
241 public int hashCode() { in hashCode() method in Matchers.Only
242 return 37 * value.hashCode(); in hashCode()
[all …]
/external/guava/guava/src/com/google/common/collect/
DRegularImmutableBiMap.java43 private final transient int hashCode; field in RegularImmutableBiMap
61 int hashCode = 0; in RegularImmutableBiMap() local
69 int keyHash = key.hashCode(); in RegularImmutableBiMap()
70 int valueHash = value.hashCode(); in RegularImmutableBiMap()
91 hashCode += keyHash ^ valueHash; in RegularImmutableBiMap()
97 this.hashCode = hashCode; in RegularImmutableBiMap()
110 int hashCode = 0; in RegularImmutableBiMap() local
118 int keyHash = key.hashCode(); in RegularImmutableBiMap()
119 int valueHash = value.hashCode(); in RegularImmutableBiMap()
140 hashCode += keyHash ^ valueHash; in RegularImmutableBiMap()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DAddress.java189 @Override public int hashCode() { in hashCode() method in Address
191 result = 31 * result + url.hashCode(); in hashCode()
192 result = 31 * result + dns.hashCode(); in hashCode()
193 result = 31 * result + authenticator.hashCode(); in hashCode()
194 result = 31 * result + protocols.hashCode(); in hashCode()
195 result = 31 * result + connectionSpecs.hashCode(); in hashCode()
196 result = 31 * result + proxySelector.hashCode(); in hashCode()
197 result = 31 * result + (proxy != null ? proxy.hashCode() : 0); in hashCode()
198 result = 31 * result + (sslSocketFactory != null ? sslSocketFactory.hashCode() : 0); in hashCode()
199 result = 31 * result + (hostnameVerifier != null ? hostnameVerifier.hashCode() : 0); in hashCode()
[all …]
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DAddress.java191 @Override public int hashCode() { in hashCode() method in Address
193 result = 31 * result + url.hashCode(); in hashCode()
194 result = 31 * result + dns.hashCode(); in hashCode()
195 result = 31 * result + authenticator.hashCode(); in hashCode()
196 result = 31 * result + protocols.hashCode(); in hashCode()
197 result = 31 * result + connectionSpecs.hashCode(); in hashCode()
198 result = 31 * result + proxySelector.hashCode(); in hashCode()
199 result = 31 * result + (proxy != null ? proxy.hashCode() : 0); in hashCode()
200 result = 31 * result + (sslSocketFactory != null ? sslSocketFactory.hashCode() : 0); in hashCode()
201 result = 31 * result + (hostnameVerifier != null ? hostnameVerifier.hashCode() : 0); in hashCode()
[all …]
/external/guice/core/src/com/google/inject/internal/
DRealElement.java94 public int hashCode() { in hashCode() method in RealElement
95 return ((127 * "setName".hashCode()) ^ setName.hashCode()) in hashCode()
96 + ((127 * "uniqueId".hashCode()) ^ uniqueId) in hashCode()
97 + ((127 * "type".hashCode()) ^ type.hashCode()) in hashCode()
98 + ((127 * "keyType".hashCode()) ^ keyType.hashCode()); in hashCode()

12345678910>>...88