public boolean equals()

in core/src/main/java/com/twitter/elephantbird/util/Pair.java [20:32]


  public boolean equals(Object other) {
    if (other instanceof Pair) {
      Pair otherPair = (Pair) other;
      if ((first == null && otherPair.first == null) ||
          (first != null && first.equals(otherPair.first))) {
        if ((second == null && otherPair.second == null) ||
            (second != null && second.equals(otherPair.second))) {
          return true;
        }
      }
    }
    return false;
  }