出典:Wikipedia
出典:『Wikipedia』 (2011/05/18 12:55 UTC 版)
In the Java programming language, every class must provide a hashCode() method which digests the data stored in an instance of the class into a single hash value (a 32-bit signed integer). This hash is used by other code when storing or manipulating the instance - the values are intended to be evenly distributed for varied inputs in order to avoid clustering. This property is important to the performance of hash tables and other data structures that store objects in groups ("buckets") based on their computed hash values.