-
Notifications
You must be signed in to change notification settings - Fork 477
/
CtlMetaInfo.java
45 lines (34 loc) · 1020 Bytes
/
CtlMetaInfo.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
42
43
44
45
package org.kaaproject.data_migration.model;
public class CtlMetaInfo {
private final String fqn;
private final Long appId;
private final Long tenatnId;
public CtlMetaInfo(String fqn, Long appId, Long tenatnId) {
this.fqn = fqn;
this.appId = appId;
this.tenatnId = tenatnId;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CtlMetaInfo that = (CtlMetaInfo) o;
if (!fqn.equals(that.fqn)) return false;
return appId != null ? appId.equals(that.appId) : that.appId == null;
}
@Override
public int hashCode() {
int result = fqn.hashCode();
result = 31 * result + (appId != null ? appId.hashCode() : 0);
return result;
}
public Long getAppId() {
return appId;
}
public Long getTenatnId() {
return tenatnId;
}
public String getFqn() {
return fqn;
}
}