Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
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 v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: Kevin Sawicki (GitHub Inc.) - initial API and implementation /
 
 package org.eclipse.egit.github.core;
 
 import java.util.Date;
 import java.util.List;
 
GitHub issue model class.
 
 public class Issue implements Serializable {

serialVersionUID
 
 	private static final long serialVersionUID = 6358575015023539051L;
 
 	private Date closedAt;
 
 	private Date createdAt;
 
 	private Date updatedAt;
 
 	private int comments;
 
 	private int number;
 
 	private List<Labellabels;
 
 	private Milestone milestone;
 
 
 	private String body;
 
 	private String htmlUrl;
 
 	private String state;
 
 	private String title;
 
 	private String url;
 
 	private User assignee;
 
 	private User user;

Returns:
closedAt
 
 	public Date getClosedAt() {
 		return DateUtils.clone();
 	}

Parameters:
closedAt
Returns:
this issue
 
 	public Issue setClosedAt(Date closedAt) {
 		this. = DateUtils.clone(closedAt);
 		return this;
 	}

Returns:
createdAt
 
 	public Date getCreatedAt() {
 		return DateUtils.clone();
 	}

Parameters:
createdAt
Returns:
this issue
 
 	public Issue setCreatedAt(Date createdAt) {
 		this. = DateUtils.clone(createdAt);
 		return this;
 	}

Returns:
updatedAt
 
 	public Date getUpdatedAt() {
 		return DateUtils.clone();
 	}

Parameters:
updatedAt
Returns:
this issue
	public Issue setUpdatedAt(Date updatedAt) {
		this. = DateUtils.clone(updatedAt);
		return this;
	}

Returns:
comments
	public int getComments() {
		return ;
	}

Parameters:
comments
Returns:
this issue
	public Issue setComments(int comments) {
		this. = comments;
		return this;
	}

Returns:
number
	public int getNumber() {
		return ;
	}

Parameters:
number
Returns:
this issue
	public Issue setNumber(int number) {
		this. = number;
		return this;
	}

Returns:
labels
	public List<LabelgetLabels() {
		return ;
	}

Parameters:
labels
Returns:
this issue
	public Issue setLabels(List<Labellabels) {
		this. = labels != null ? new ArrayList<Label>(labels) : null;
		return this;
	}

Returns:
milestone
	public Milestone getMilestone() {
		return ;
	}

Parameters:
milestone
Returns:
this issue
	public Issue setMilestone(Milestone milestone) {
		this. = milestone;
		return this;
	}

Returns:
pullRequest
		return ;
	}

Parameters:
pullRequest
Returns:
this issue
	public Issue setPullRequest(PullRequest pullRequest) {
		this. = pullRequest;
		return this;
	}

Returns:
body
	public String getBody() {
		return ;
	}

Parameters:
body
Returns:
this issue
	public Issue setBody(String body) {
		this. = body;
		return this;
	}

Returns:
htmlUrl
	public String getHtmlUrl() {
		return ;
	}

Parameters:
htmlUrl
Returns:
this issue
	public Issue setHtmlUrl(String htmlUrl) {
		this. = htmlUrl;
		return this;
	}

Returns:
state
	public String getState() {
		return ;
	}

Parameters:
state
Returns:
this issue
	public Issue setState(String state) {
		this. = state;
		return this;
	}

Returns:
title
	public String getTitle() {
		return ;
	}

Parameters:
title
Returns:
this issue
	public Issue setTitle(String title) {
		this. = title;
		return this;
	}

Returns:
url
	public String getUrl() {
		return ;
	}

Parameters:
url
Returns:
this issue
	public Issue setUrl(String url) {
		this. = url;
		return this;
	}

Returns:
assignee
	public User getAssignee() {
		return ;
	}

Parameters:
assignee
Returns:
this issue
	public Issue setAssignee(User assignee) {
		this. = assignee;
		return this;
	}

Returns:
user
	public User getUser() {
		return ;
	}

Parameters:
user
Returns:
this issue
	public Issue setUser(User user) {
		this. = user;
		return this;
	}
	public String toString() {
		return "Issue " + //$NON-NLS-1$
	}
New to GrepCode? Check out our FAQ X