-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImportSettings.java
41 lines (35 loc) · 1.44 KB
/
ImportSettings.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package net.florianschoppmann.issuetracking;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.util.Objects;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ImportSettings {
public @Nullable String youTrackProjectAbbrev;
public boolean importIssues;
public boolean importLinks;
public boolean importAttachments;
public boolean importEvents;
public boolean updateIssues;
public boolean updateComments;
@Override
public boolean equals(Object otherObject) {
if (this == otherObject) {
return true;
} else if (otherObject == null || getClass() != otherObject.getClass()) {
return false;
}
ImportSettings other = (ImportSettings) otherObject;
return Objects.equals(youTrackProjectAbbrev, other.youTrackProjectAbbrev)
&& Objects.equals(importIssues, other.importIssues)
&& Objects.equals(importLinks, other.importLinks)
&& Objects.equals(importAttachments, other.importAttachments)
&& Objects.equals(importEvents, other.importEvents)
&& Objects.equals(updateIssues, other.updateIssues)
&& Objects.equals(updateComments, other.updateComments);
}
@Override
public int hashCode() {
return Objects.hash(youTrackProjectAbbrev, importIssues, importLinks, importAttachments, importEvents,
updateIssues, updateComments);
}
}