How to create a hash code from two fields in my class?
For example, I want Pair classes with the same V objects to have the same hash code:
public class Pair<V> { V from, to; }
Should I multiply my hash codes together? Add them? Multiply them by simple?
source share