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

team.yi.tools.semanticcommit.model.IssueRef Maven / Gradle / Ivy

package team.yi.tools.semanticcommit.model;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

import java.io.Serializable;

@Getter
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
@ToString(onlyExplicitlyIncluded = true)
public class IssueRef implements Serializable {
    private static final long serialVersionUID = 6833555213108571041L;

    @EqualsAndHashCode.Include
    @ToString.Include
    private final String repo;

    @EqualsAndHashCode.Include
    @ToString.Include
    private final Integer id;

    private final String url;
    private final String action;

    public IssueRef(final Integer issueId, final String url) {
        this(null, issueId, url);
    }

    public IssueRef(final String repo, final Integer issueId, final String url) {
        this(repo, issueId, url, null);
    }

    public IssueRef(final Integer issueId, final String url, final String action) {
        this(null, issueId, url, action);
    }

    public IssueRef(final String repo, final Integer issueId, final String url, final String action) {
        this.repo = repo;
        this.id = issueId;
        this.url = url;
        this.action = action;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy