com.taskadapter.redmineapi.bean.Tracker Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redmine-java-api Show documentation
Show all versions of redmine-java-api Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
This project was originally a part of Task Adapter application (http://www.taskadapter.com)
and then was open-sourced.
The newest version!
package com.taskadapter.redmineapi.bean;
import java.io.Serializable;
/**
* Redmine's Tracker (bug/feature/task/...)
*/
public class Tracker implements Identifiable, Serializable {
/**
* database ID.
*/
private Integer id;
private String name;
/**
* @param id database ID.
*/
public Tracker setId(Integer id) {
this.id = id;
return this;
}
public Integer getId() {
return id;
}
public String getName() {
return name;
}
public Tracker setName(String name) {
this.name = name;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Tracker tracker = (Tracker) o;
if (id != null ? !id.equals(tracker.id) : tracker.id != null) return false;
return true;
}
@Override
public int hashCode() {
return id != null ? id.hashCode() : 0;
}
}