Normally when you have an object an objects Equals methods is equal to another object of same type if the two hashcodes are alike.

Does Integer work the same way by comparing hashcodes or does it work in a different way?