com.taskadapter.redmineapi.bean.TimeEntryActivity 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;
public class TimeEntryActivity {
/**
* database Id
*/
private Integer id;
private String name;
private boolean isDefault;
/**
* @param id database Id
*/
public TimeEntryActivity setId(Integer id) {
this.id = id;
return this;
}
public Integer getId() {
return id;
}
public String getName() {
return name;
}
public TimeEntryActivity setName(String name) {
this.name = name;
return this;
}
public boolean isDefault() {
return isDefault;
}
public TimeEntryActivity setDefault(boolean isDefault) {
this.isDefault = isDefault;
return this;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TimeEntryActivity that = (TimeEntryActivity) o;
if (id != null ? !id.equals(that.id) : that.id != null) return false;
return true;
}
@Override
public int hashCode() {
return id != null ? id.hashCode() : 0;
}
@Override
public String toString() {
return "TimeEntryActivity [id=" + id + ", name=" + name + ", isDefault="
+ isDefault + "]";
}
}