Top "Hashcode" questions

A hash code is a result of applying a hash function to data, usually resulting in an integer.

Is there any kind of hash code function in JavaScript?

Basically, I'm trying to create an object of unique objects, a set. I had the brilliant idea of just using …

javascript hash set hashcode
HashMaps and Null values?

How do you pass in null values into a HashMap? The following code snippet works with options filled in: HashMap&…

java null hashmap hashcode
What is the use of hashCode in Java?

In Java, obj.hashCode() returns some value. What is the use of this hash code in programming?

java hashcode
How to create a HashMap with two keys (Key-Pair, Value)?

I have a 2D array of Integers. I want them to be put into a HashMap. But I want to …

java hash hashmap hashcode
Memory address of variables in Java

Please take a look at the picture below. When we create an object in java with the new keyword, we …

java memory-management jvm hashcode memory-address
Hashing with SHA1 Algorithm in C#

I want to hash given byte[] array with using SHA1 Algorithm with the use of SHA1Managed. The byte[] hash …

c# hash byte sha1 hashcode
How do you get the "object reference" of an object in java when toString() and hashCode() have been overridden?

I would like to print the "object reference" of an object in Java for debugging purposes. I.e. to make …

java object hashcode
Consistency of hashCode() on a Java string

The hashCode value of a Java String is computed as (String.hashCode()): s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] Are there …

java string hashcode
.NET unique object identifier

Is there a way of getting a unique identifier of an instance? GetHashCode() is the same for the two references …

c# unique hashcode gethashcode
What is hashCode used for? Is it unique?

I notice there is a getHashCode() method in every controls, items, in WP7, which return a sequence of number. Can …

c# hashcode