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

com.almworks.jira.structure.api.process.ProcessButtonParameters Maven / Gradle / Ivy

There is a newer version: 17.25.3
Show newest version
package com.almworks.jira.structure.api.process;

import com.almworks.jira.structure.api.util.I18nText;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

public class ProcessButtonParameters {
  private I18nText myCaption;
  private String myUrl;

  public ProcessButtonParameters(I18nText caption, String url) {
    myCaption = caption;
    myUrl = url;
  }

  public ProcessButtonParameters() {}

  public I18nText getCaption() {
    return myCaption;
  }

  public void setCaption(I18nText caption) {
    myCaption = caption;
  }

  public String getUrl() {
    return myUrl;
  }

  public void setUrl(String url) {
    myUrl = url;
  }


  @Override
  public boolean equals(Object obj) {
    if (obj == null) { return false; }
    if (obj == this) { return true; }
    if (obj.getClass() != getClass()) {
      return false;
    }
    ProcessButtonParameters rhs = (ProcessButtonParameters) obj;
    return new EqualsBuilder()
      .append(this.myCaption, rhs.myCaption)
      .append(this.myUrl, rhs.myUrl)
      .isEquals();
  }

  @Override
  public int hashCode() {
    return new HashCodeBuilder()
      .append(myCaption)
      .append(myUrl)
      .toHashCode();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy