langtools/src/share/classes/com/sun/tools/javac/util/Pair.java
changeset 22163 3651128c74eb
parent 16795 04f5c8373776
equal deleted inserted replaced
22162:3b3e23e67329 22163:3651128c74eb
    60         else if (snd == null) return fst.hashCode() + 2;
    60         else if (snd == null) return fst.hashCode() + 2;
    61         else return fst.hashCode() * 17 + snd.hashCode();
    61         else return fst.hashCode() * 17 + snd.hashCode();
    62     }
    62     }
    63 
    63 
    64     public static <A,B> Pair<A,B> of(A a, B b) {
    64     public static <A,B> Pair<A,B> of(A a, B b) {
    65         return new Pair<A,B>(a,b);
    65         return new Pair<>(a,b);
    66     }
    66     }
    67 }
    67 }