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.Map;
 
Repository hook model class
 
 public class RepositoryHook implements Serializable {

serialVersionUID
 
 	private static final long serialVersionUID = -9023469643749604324L;
 
 	private boolean active;
 
 	private Date createdAt;
 
 	private Date updatedAt;
 
 	private long id;
 
 
 	private String name;
 
 	private String url;
 
 	private Map<StringStringconfig;

Returns:
active
 
 	public boolean isActive() {
 		return ;
 	}

Parameters:
active
Returns:
this hook
 
 	public RepositoryHook setActive(boolean active) {
 		this. = active;
 		return this;
 	}

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

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

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

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

Returns:
id
 
 	public long getId() {
 		return ;
 	}

Parameters:
id
Returns:
this hook
	public RepositoryHook setId(long id) {
		this. = id;
		return this;
	}

Returns:
lastResponse
		return ;
	}

Parameters:
lastResponse
Returns:
this hook
		this. = lastResponse;
		return this;
	}

Returns:
name
	public String getName() {
		return ;
	}

Parameters:
name
Returns:
this hook
	public RepositoryHook setName(String name) {
		this. = name;
		return this;
	}

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

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

Returns:
config
	public Map<StringStringgetConfig() {
		return ;
	}

Parameters:
config
Returns:
this hook
	public RepositoryHook setConfig(Map<StringStringconfig) {
		this. = config;
		return this;
	}
New to GrepCode? Check out our FAQ X