Searched refs:hashCode (Results 26 - 50 of 1549) sorted by relevance

1234567891011>>

/openjdk10/jdk/src/jdk.jdi/share/classes/com/sun/jdi/
H A DFloatValue.java60 int hashCode(); method in interface:FloatValue
H A DShortValue.java60 int hashCode(); method in interface:ShortValue
H A DDoubleValue.java60 int hashCode(); method in interface:DoubleValue
H A DCharValue.java60 int hashCode(); method in interface:CharValue
/openjdk10/jdk/test/java/net/URL/
H A DHashCode.java27 * @summary Test URL.hashCode with null host
37 int code = url.hashCode();
/openjdk10/jdk/test/java/util/Hashtable/
H A DHashCode.java27 * @summary Hashtable's hashCode method always returns zero(!)
36 if (m.hashCode() != 0)
37 throw new Exception("Empty Hashtable has nonzero hashCode.");
/openjdk10/jdk/test/sun/text/IntHashtable/patch-src/java/text/
H A DBug4170614Test.java66 * This class tests some internal hashCode() functions.
68 * break the invariant that if a.equals(b) than a.hashCode() ==
69 * b.hashCode(). This is because these classes overrode equals()
70 * but not hashCode(). These are both purely internal classes, and
71 * the library itself doesn't actually call hashCode(), so this isn't
73 * ever exposed in the API, their hashCode() methods need to work right.
108 System.out.println("fred.hashCode() == " + fred.hashCode());
109 System.out.println("barney.hashCode() == " + barney.hashCode());
[all...]
/openjdk10/langtools/src/java.compiler/share/classes/javax/lang/model/element/
H A DName.java70 * Obeys the general contract of {@link Object#hashCode Object.hashCode}.
74 int hashCode(); method in interface:Name
/openjdk10/langtools/test/tools/javac/diags/examples/
H A DNeitherConditionalSubtype.java29 (o instanceof String ? o.hashCode() : o.wait()).toString();
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/
H A DItem.java129 int hashCode; field in class:Item
170 hashCode = i.hashCode;
182 this.hashCode = 0x7FFFFFFF & (type + intVal);
194 this.hashCode = 0x7FFFFFFF & (type + (int) longVal);
206 this.hashCode = 0x7FFFFFFF & (type + (int) floatVal);
218 this.hashCode = 0x7FFFFFFF & (type + (int) doubleVal);
249 hashCode = 0x7FFFFFFF & (type + strVal1.hashCode());
252 hashCode
295 set(int position, int hashCode) argument
[all...]
/openjdk10/langtools/test/tools/javac/flow/tests/
H A DTestCaseSwitch.java15 o.hashCode();
17 oo.hashCode();
21 o.hashCode();
23 uu.hashCode();
39 o.hashCode();
41 oo.hashCode();
45 o.hashCode();
47 uu.hashCode();
63 o.hashCode();
67 o.hashCode();
[all...]
H A DTestCaseTry.java14 o.hashCode();
26 o.hashCode();
31 o.hashCode();
43 o.hashCode();
46 o.hashCode();
50 o.hashCode();
63 o.hashCode();
75 o.hashCode();
H A DTestCaseConditional.java12 oo.hashCode();
14 o.hashCode();
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/jaxws/
H A DBuilderHandlerMessageScope.java104 public int hashCode() { method in class:BuilderHandlerMessageScope
105 int hashCode = 19;
106 hashCode = 31 * hashCode + (policySubject == null ? 0 : policySubject.hashCode());
107 hashCode = 31 * hashCode + (message == null ? 0 : message.hashCode());
108 hashCode = 31 * hashCode
[all...]
/openjdk10/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/lang/
H A DObject_hashCode01.java36 return o1.hashCode() != 0 || o2.hashCode() != 0;
H A DObject_hashCode02.java42 return obj1.hashCode();
45 return obj2.hashCode();
47 return obj3.hashCode();
/openjdk10/jdk/src/jdk.naming.dns/share/classes/com/sun/jndi/dns/
H A DDnsNameParser.java52 public int hashCode() { method in class:DnsNameParser
53 return DnsNameParser.class.hashCode() + 1;
/openjdk10/jdk/test/java/awt/datatransfer/DataFlavor/
H A DEqualHashCodeTest.java27 @summary tests that certain awt classes do not break basic hashCode() contract.
56 if (df1.hashCode() != df2.hashCode()) {
61 if (dim1.hashCode() != dim2.hashCode()) {
66 if (insets1.hashCode() != insets2.hashCode()) {
75 if (cm1.hashCode() != cm2.hashCode()) {
/openjdk10/jdk/test/java/io/pathNames/win32/
H A Dbug6344646.java26 * @summary tests that WinNTFileSystem.hashCode() uses
46 if (f1.hashCode() != f2.hashCode()) {
47 throw new RuntimeException("File.hashCode() for \"J\u0301\" " +
/openjdk10/jdk/test/java/time/test/java/time/
H A DTestPeriod.java93 // hashCode()
101 assertEquals(test5.hashCode() == test5.hashCode(), true);
102 assertEquals(test5.hashCode() == test6.hashCode(), false);
103 assertEquals(test5.hashCode() == test5M.hashCode(), false);
104 assertEquals(test5.hashCode() == test5Y.hashCode(), false);
/openjdk10/langtools/test/tools/javac/generics/inference/5080917/
H A DT5080917.java38 X x = (a.hashCode() == b.hashCode()) ? a : b;
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/
H A DPair.java58 public int hashCode() { method in class:Pair
59 if (fst == null) return (snd == null) ? 0 : snd.hashCode() + 1;
60 else if (snd == null) return fst.hashCode() + 2;
61 else return fst.hashCode() * 17 + snd.hashCode();
/openjdk10/test/lib/jdk/test/lib/util/
H A DPair.java59 public int hashCode() { method in class:Pair
61 return (second == null) ? 0 : second.hashCode();
63 return first.hashCode();
65 return first.hashCode() * 17 + second.hashCode();
/openjdk10/hotspot/src/share/tools/IdealGraphVisualizer/Data/test/unit/src/com/sun/hotspot/igv/data/
H A DPairTest.java72 assertFalse(p.hashCode() == p2.hashCode());
77 assertTrue(p2.hashCode() == p3.hashCode());
83 assertFalse(p2.hashCode() == p3.hashCode());
90 assertFalse(p2.hashCode() == p3.hashCode());
95 assertTrue(p2.hashCode() == p3.hashCode());
[all...]
/openjdk10/corba/src/java.corba/share/classes/com/sun/corba/se/spi/orb/
H A DStringPair.java45 public int hashCode() method in class:StringPair
47 return first.hashCode() ^ second.hashCode() ;

Completed in 244 milliseconds

1234567891011>>