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

io.scalecube.services.examples.GreetingResponse Maven / Gradle / Ivy

package io.scalecube.services.examples;

public class GreetingResponse {

  private String text;

  public GreetingResponse() {}

  public GreetingResponse(String text) {
    this.text = text;
  }

  public String getText() {
    return text;
  }

  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null || getClass() != obj.getClass()) {
      return false;
    }

    GreetingResponse that = (GreetingResponse) obj;

    return text != null ? text.equals(that.text) : that.text == null;
  }

  @Override
  public int hashCode() {
    return text != null ? text.hashCode() : 0;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("GreetingResponse{");
    sb.append("text='").append(text).append('\'');
    sb.append('}');
    return sb.toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy