@Override
  public boolean equals(Object o) {
    if (!(o instanceof Pair)) {
      return false;
    }
    Pair<?, ?> p = (Pair<?, ?>) o;
    return objectsEqual(p.first, first) && objectsEqual(p.second, second);
  }
Checks the two objects for equality by delegating to their respective
{@link Object#equals(Object)} methods.

@param o the {@link Pair} to which this one is to be checked for equality
@return true if the underlying objects of the Pair are both considered
equal
lottie/src/main/java/com/airbnb/lottie/model/MutablePair.java