Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: cd73b9fdf26ed047366445b0cef3c09a39cc3905 (plain) (tree)
1
2
3
4
5
6
7
8


                                                                               
                                                                        
                                                            


                                          










                                                                               


                                                                          



                             

                                     

                                

                                        

                            

                                
































                                                        















                                                                        















                                                           















                                                                           













                                                   















                                                           
 
/******************************************************************************
 *  Copyright (c) 2011 GitHub Inc.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License 2.0
 *  which accompanies this distribution, and is available at
 *  https://www.eclipse.org/legal/epl-2.0/
 *
 *  SPDX-License-Identifier: EPL-2.0
 *
 *  Contributors:
 *    Kevin Sawicki (GitHub Inc.) - initial API and implementation
 *****************************************************************************/
package org.eclipse.egit.github.core;

/**
 * Commit comment model class.
 */
public class CommitComment extends Comment {

	/** serialVersionUID */
	private static final long serialVersionUID = 5932088388457362322L;

	private int line;

	private int position;

	private int originalPosition;

	private String commitId;

	private String originalCommitId;

	private String path;

	private String diffHunk;

	/**
	 * @return line
	 */
	public int getLine() {
		return line;
	}

	/**
	 * @param line
	 * @return this commit comment
	 */
	public CommitComment setLine(int line) {
		this.line = line;
		return this;
	}

	/**
	 * @return position
	 */
	public int getPosition() {
		return position;
	}

	/**
	 * @param position
	 * @return this commit comment
	 */
	public CommitComment setPosition(int position) {
		this.position = position;
		return this;
	}

	/**
	 * @return originalPosition
	 */
	public int getOriginalPosition() {
		return originalPosition;
	}

	/**
	 * @param originalPosition
	 * @return this commit comment
	 */
	public CommitComment setOriginalPosition(int originalPosition) {
		this.originalPosition = originalPosition;
		return this;
	}

	/**
	 * @return commitId
	 */
	public String getCommitId() {
		return commitId;
	}

	/**
	 * @param commitId
	 * @return this commit comment
	 */
	public CommitComment setCommitId(String commitId) {
		this.commitId = commitId;
		return this;
	}

	/**
	 * @return originalCommitId
	 */
	public String getOriginalCommitId() {
		return originalCommitId;
	}

	/**
	 * @param originalCommitId
	 * @return this commit comment
	 */
	public CommitComment setOriginalCommitId(String originalCommitId) {
		this.originalCommitId = originalCommitId;
		return this;
	}

	/**
	 * @return path
	 */
	public String getPath() {
		return path;
	}

	/**
	 * @param path
	 * @return this commit comment
	 */
	public CommitComment setPath(String path) {
		this.path = path;
		return this;
	}

	/**
	 * @return diffHunk
	 */
	public String getDiffHunk() {
		return diffHunk;
	}

	/**
	 * @param diffHunk
	 * @return this commit comment
	 */
	public CommitComment setDiffHunk(String diffHunk) {
		this.diffHunk = diffHunk;
		return this;
	}
}

Back to the top