Top "Hashcode" questions

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

How can I generate an MD5 hash?

Is there any method to generate MD5 hash of a string in Java?

java hash md5 hashcode
What issues should be considered when overriding equals and hashCode in Java?

What issues / pitfalls must be considered when overriding equals and hashCode?

java overriding equals hashcode
How to determine equality for two JavaScript objects?

A strict equality operator will tell you if two object types are equal. However, is there a way to tell …

javascript object equals hashcode
Why do I need to override the equals and hashCode methods in Java?

Recently I read through this Developer Works Document. The document is all about defining hashCode() and equals() effectively and correctly, …

java equals hashcode
Why is it important to override GetHashCode when Equals method is overridden?

Given the following class public class Foo { public int FooId { get; set; } public string FooName { get; set; } public override bool …

c# overriding hashcode
Good Hash Function for Strings

I'm trying to think up a good hash function for strings. And I was thinking it might be a good …

java hash hashtable hashcode
Best implementation for hashCode method for a collection

How do we decide on the best implementation of hashCode() method for a collection (assuming that equals method has been …

java hash equals hashcode
What is the best algorithm for overriding GetHashCode?

In .NET, the GetHashCode method is used in a lot of places throughout the .NET base class libraries. Implementing it …

.net algorithm hashcode gethashcode
How to get the unique ID of an object which overrides hashCode()?

When a class in Java doesn't override hashCode(), printing an instance of this class gives a nice unique number. The …

java identity hashcode
How does a Java HashMap handle different objects with the same hash code?

As per my understanding I think: It is perfectly legal for two objects to have the same hashcode. If two …

java hashmap hashcode hash-function