예제 #1
0
 @Override
 public boolean equals(Object other) {
   if (!(other instanceof OutPoint)) {
     return false;
   }
   return hash.equals(((OutPoint) other).hash) && index == ((OutPoint) other).index;
 }
예제 #2
0
 @Override
 public int hashCode() {
   return hash.hashCode() + index;
 }