20 package uk.ac.cam.eng.util;
41 public Pair(T first, U second) {
80 return first +
"\t" + second;
87 result = prime * result + ((first == null) ? 0 : first.hashCode());
88 result = prime * result + ((second == null) ? 0 : second.hashCode());
100 if (getClass() != obj.getClass()) {
103 @SuppressWarnings(
"unchecked")
106 if (other.first != null) {
109 }
else if (!first.equals(other.first)) {
112 if (second == null) {
113 if (other.second != null) {
116 }
else if (!second.equals(other.second)) {
static< F, S > Pair< F, S > createPair(F first, S second)
boolean equals(Object obj)