Top "Hashcode" questions

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

Hash a double in Java

I was wondering how to hash a double in Java? I have hashed other primitive data and objects. I thought …

java object double hashcode primitive-types
Java recreate string from hashcode

Is there any way that I can use a hashcode of a string in java, and recreate that string? e.…

java string hashcode construct
Java Hashset.contains() produces mysterious result

I don't usually code in Java, but recently I started not having a choice. I might have some major misunderstanding …

java equals hashcode contains hashset
Get a file SHA256 Hash code and Checksum

Previously I asked a question about combining SHA1+MD5 but after that I understand calculating SHA1 and then MD5 of …

c# mono hashcode checksum sha256
Is it possible in java make something like Comparator but for implementing custom equals() and hashCode()

I have an array of objects and I want to concatenate it with another array of objects, except that objects …

java collections equals hashcode
How do hashCode() and identityHashCode() work at the back end?

How do Object.hashCode() and System.identityHashCode() work at the back end? Does identityHashCode() return the reference of the object? …

java object hashcode
What is a sensible prime for hashcode calculation?

Eclipse 3.5 has a very nice feature to generate Java hashCode() functions. It would generate for example (slightly shortened:) class HashTest { …

java hashcode primes
location.hash and back history

Is there a function that can be called to prevent the browser from recording a back history entry when changing …

javascript browser-cache hashcode
Finding the hash value of a row in postgresql

Is there a way to get the hash code of a row in postgresql? I need to export some data …

sql postgresql hashcode
TreeSet internally uses TreeMap, so is it required to implement Hashcode method when using Treeset?

I would like to know what it means when javadocs for TreeSet says This class implements the Set interface, backed …

java collections hashcode treemap treeset