com.nulabinc.backlog4j.internal.json.activities.IssueCommentedActivity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of backlog4j Show documentation
Show all versions of backlog4j Show documentation
Backlog4j is a Backlog binding library for Java.
package com.nulabinc.backlog4j.internal.json.activities;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* @author nulab-inc
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class IssueCommentedActivity extends ActivityJSONImpl {
private int type = 3;
@JsonDeserialize(as=IssueCommentedContent.class)
private IssueCommentedContent content;
@Override
public Type getType() {
return Type.valueOf(this.type);
}
@Override
public IssueCommentedContent getContent() {
return this.content;
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (obj == this) {
return true;
}
if (obj.getClass() != getClass()) {
return false;
}
IssueCommentedActivity rhs = (IssueCommentedActivity) obj;
return new EqualsBuilder()
.append(this.type, rhs.type)
.append(this.content, rhs.content)
.isEquals();
}
@Override
public int hashCode() {
return new HashCodeBuilder()
.append(type)
.append(content)
.toHashCode();
}
@Override
public String toString() {
return new ToStringBuilder(this)
.append("type", type)
.append("content", content)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy