@Override public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof LottieResult)) {
      return false;
    }
    LottieResult<?> that = (LottieResult<?>) o;
    if (getValue() != null && getValue().equals(that.getValue())) {
      return true;
    }
    if (getException() != null && that.getException() != null) {
      return getException().toString().equals(getException().toString());
    }
    return false;
  }
Contains class to hold the resulting value of an async task or an exception if it failed.
<p>
Either value or exception will be non-null.
lottie/src/main/java/com/airbnb/lottie/LottieResult.java