com.fenglinga.tinyspring.common.Pair Maven / Gradle / Ivy
package com.fenglinga.tinyspring.common;
public class Pair {
public F first;
public S second;
public Pair(F first, S second) {
this.first = first;
this.second = second;
}
@Override
public int hashCode() {
return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode());
}
public static Pair create(A a, B b) {
return new Pair(a, b);
}
}