All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.imap.protocol.response.ContinuationResponse Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package com.hubspot.imap.protocol.response;

import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;

public interface ContinuationResponse extends ImapResponse {
  class Builder implements ContinuationResponse {

    private String message;

    public String getMessage() {
      return this.message;
    }

    public Builder setMessage(String message) {
      this.message = message;
      return this;
    }

    public ContinuationResponse build() {
      return this;
    }

    @Override
    public String toString() {
      return MoreObjects.toStringHelper(this).add("message", message).toString();
    }

    @Override
    public boolean equals(Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      Builder builder = (Builder) o;
      return Objects.equal(getMessage(), builder.getMessage());
    }

    @Override
    public int hashCode() {
      return Objects.hashCode(getMessage());
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy