コード例 #1
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;

    TwitterStreamImpl that = (TwitterStreamImpl) o;

    if (handler != null ? !handler.equals(that.handler) : that.handler != null) return false;
    if (http != null ? !http.equals(that.http) : that.http != null) return false;
    if (lifeCycleListeners != null
        ? !lifeCycleListeners.equals(that.lifeCycleListeners)
        : that.lifeCycleListeners != null) return false;
    if (rawStreamListeners != null
        ? !rawStreamListeners.equals(that.rawStreamListeners)
        : that.rawStreamListeners != null) return false;
    if (siteStreamsListeners != null
        ? !siteStreamsListeners.equals(that.siteStreamsListeners)
        : that.siteStreamsListeners != null) return false;
    if (stallWarningsGetParam != null
        ? !stallWarningsGetParam.equals(that.stallWarningsGetParam)
        : that.stallWarningsGetParam != null) return false;
    if (stallWarningsParam != null
        ? !stallWarningsParam.equals(that.stallWarningsParam)
        : that.stallWarningsParam != null) return false;
    if (statusListeners != null
        ? !statusListeners.equals(that.statusListeners)
        : that.statusListeners != null) return false;
    if (userStreamListeners != null
        ? !userStreamListeners.equals(that.userStreamListeners)
        : that.userStreamListeners != null) return false;

    return true;
  }
コード例 #2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;

    TwitterStreamImpl that = (TwitterStreamImpl) o;

    if (handler != null ? !handler.equals(that.handler) : that.handler != null) return false;
    if (http != null ? !http.equals(that.http) : that.http != null) return false;
    if (lifeCycleListeners != null
        ? !lifeCycleListeners.equals(that.lifeCycleListeners)
        : that.lifeCycleListeners != null) return false;
    if (!Arrays.equals(streamListeners, that.streamListeners)) return false;

    return true;
  }