package com.atlassian.stash.internal.scm.git.pull;

/**
 * Encapsulates a {@link PullRequestMergeType merge type} and a merge hash.
 *
 * @since 2.9
 */
public class PullRequestMerge {

    private final String hash;
    private final PullRequestMergeType type;

    public PullRequestMerge(String hash, PullRequestMergeType type) {
        this.type = type;
        this.hash = hash;
    }

    public String getHash() {
        return hash;
    }

    public PullRequestMergeType getType() {
        return type;
    }

    public boolean isClean() {
        return type == PullRequestMergeType.CLEAN;
    }
}
