Searched refs:hashCode (Results 1 - 25 of 205) sorted by path

123456789

/libcore/dalvik/src/main/java/dalvik/system/profiler/
H A DHprofData.java91 @Override public int hashCode() { method in class:HprofData.ThreadEvent
95 result = 31 * result + hashCode(threadName);
96 result = 31 * result + hashCode(groupName);
97 result = 31 * result + hashCode(parentGroupName);
101 private static int hashCode(Object o) { method in class:HprofData.ThreadEvent
102 return (o == null) ? 0 : o.hashCode();
165 @Override public int hashCode() { method in class:HprofData.StackTrace
168 result = 31 * result + Arrays.hashCode(stackFrames);
218 @Override public int hashCode() { method in class:HprofData.Sample
220 result = 31 * result + stackTrace.hashCode();
[all...]
/libcore/json/src/main/java/org/json/
H A DJSONArray.java581 @Override public int hashCode() { method in class:JSONArray
582 // diverge from the original, which doesn't implement hashCode
583 return values.hashCode();
/libcore/json/src/test/java/org/json/
H A DJSONArrayTest.java61 assertEquals("equals() not consistent with hashCode()", a.hashCode(), b.hashCode());
68 assertEquals(a.hashCode(), b.hashCode());
72 assertTrue(a.hashCode() != b.hashCode());
H A DJSONObjectTest.java109 // JSON object doesn't override either equals or hashCode (!)
111 assertEquals(a.hashCode(), System.identityHashCode(a));
/libcore/luni/src/main/java/java/awt/font/
H A DNumericShaper.java499 public int hashCode() { method in class:NumericShaper
/libcore/luni/src/main/java/java/io/
H A DFile.java505 public int hashCode() { method in class:File
506 return getPath().hashCode() ^ 1234321;
/libcore/luni/src/main/java/java/lang/
H A DBoolean.java145 public int hashCode() { method in class:Boolean
H A DByte.java170 public int hashCode() { method in class:Byte
H A DCharacter.java558 * {@link java.lang.Object#hashCode()}.
561 public final int hashCode() { method in class:Character.Subset
562 return super.hashCode();
2615 public int hashCode() { method in class:Character
H A DDouble.java219 public int hashCode() { method in class:Double
H A DEnum.java118 public final int hashCode() { method in class:Enum
119 return ordinal + (name == null ? 0 : name.hashCode());
H A DFloat.java223 public int hashCode() { method in class:Float
H A DInteger.java302 public int hashCode() { method in class:Integer
H A DLong.java289 public int hashCode() { method in class:Long
H A DObject.java68 * <p>If you override {@code equals}, you should also override {@code hashCode}: equal
73 * <a name="writing_hashCode"><h4>Writing a correct {@code hashCode} method</h4></a>
74 * <p>Follow this style to write a canonical {@code hashCode} method:
76 * &#x0040;Override public int hashCode() {
95 * result = 31 * result + Arrays.hashCode(arrayField);
97 * result = 31 * result + referenceField.hashCode();
100 * : nullableReferenceField.hashCode());
107 * {@code hashCode} implementation, because that silently and non-obviously breaks any future
110 * &#x0040;Override public int hashCode() {
179 * #hashCode()} method
259 public native int hashCode(); method in class:Object
[all...]
H A DPackage.java226 public int hashCode() { method in class:Package
227 return name.hashCode();
H A DShort.java169 public int hashCode() { method in class:Short
H A DStackTraceElement.java96 * @see #hashCode
180 public int hashCode() { method in class:StackTraceElement
190 return methodName.hashCode() ^ declaringClass.hashCode();
H A DString.java112 private int hashCode; field in class:String
743 * @see #hashCode
906 @Override public int hashCode() { method in class:String
907 int hash = hashCode;
917 hashCode = hash;
1613 s.hashCode = value;
/libcore/luni/src/main/java/java/lang/annotation/
H A DAnnotation.java91 * (0x7f * n.hashCode()) ^ v.hashCode())}, where {@code n} is the
97 * Integer.valueOf(v).hashCode()} is used for an {@code int} value
102 * using the corresponding {@code hashCode(v)} helper function in
107 * calling their {@code hashCode} method.
113 int hashCode(); method in interface:Annotation
/libcore/luni/src/main/java/java/lang/reflect/
H A DConstructor.java273 * @see #hashCode
365 public int hashCode() { method in class:Constructor
366 return declaringClass.getName().hashCode();
H A DField.java235 * @see #hashCode
553 public int hashCode() { method in class:Field
554 return name.hashCode() ^ getDeclaringClass().getName().hashCode();
H A DMethod.java378 * @see #hashCode
462 public int hashCode() { method in class:Method
463 return name.hashCode();
/libcore/luni/src/main/java/java/math/
H A DBigDecimal.java119 private transient int hashCode = 0; field in class:BigDecimal
2228 public int hashCode() { method in class:BigDecimal
2229 if (hashCode != 0) {
2230 return hashCode;
2233 hashCode = (int)(smallValue & 0xffffffff);
2234 hashCode = 33 * hashCode + (int)((smallValue >> 32) & 0xffffffff);
2235 hashCode = 17 * hashCode + scale;
2236 return hashCode;
[all...]
H A DBigInteger.java92 private transient int hashCode = 0; field in class:BigInteger
793 public int hashCode() { method in class:BigInteger
794 if (hashCode != 0) {
795 return hashCode;
799 hashCode = hashCode * 33 + digits[i];
801 hashCode = hashCode * sign;
802 return hashCode;

Completed in 268 milliseconds

123456789