Method hashCode()
Return type: int
Member of:
java.lang.String
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
int hash = key.hashCode() & 0x7FFFFFFF;
2
collection_id = Math.abs(canonicalName.hashCode());
3
int hash = id.hashCode();
4
{ assertEquals("ahoy".hashCode(), c.f("ahoy")); }
5
hashCache = name.hashCode();
6
actionPerformed(new ActionEvent(this, keyCode.hashCode(), keyCode));
7
assertEquals(7 + ColorEnum.class.hashCode() + 3 * "Red".hashCode(), ColorEnum.RED.hashCode());
8
_hc = _as.hashCode();
9
assertEquals( s.hashCode(), ((C) abc).f(s));
10
sb.append(Integer.toString(namespaceURI.hashCode()));
11
String fileHash = String.valueOf(filePath.hashCode());
12
String hash1 = this.namespaceURI.hashCode() + "";
13
addElementToRegistry(Integer.toString(value.hashCode()),value);
14
String dirName = Integer.toHexString((fileName.hashCode() % 255) & 255);
15
return new Integer(mockToString(proxy).hashCode());
16
m_displayName.hashCode() ^
17
int hashCode = prop.getName().hashCode();
18
int hash = name.hashCode();
19
int hash = key.hashCode() & 0x7FFFFFFF;
20
d = append(d, name.hashCode());
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.