How do I generate a hashCode from two fields in my class?
For example, I want Pair classes with the same objects V to have the same hashCode:
public class Pair<V> {
    V from, to;
}
Should I multiply their hashCodes together? Add them? Multiply them with a prime?
 
     
    