TntMbox.java
1.25 KB
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
46
47
48
49
50
/*
* Decompiled with CFR 0_118.
*/
package com.day.cq.analytics.testandtarget.impl.model;
import com.day.cq.analytics.testandtarget.impl.TestandtargetSegment;
import java.util.ArrayList;
import java.util.List;
public class TntMbox {
private long locationLocalId = 0;
private String name;
private List<Long> segmentIds;
public TntMbox(long localId, String name) {
this.locationLocalId = localId;
this.name = name;
}
public void fillSegmentIds(List<TestandtargetSegment> segments) {
this.segmentIds = new ArrayList<Long>();
for (TestandtargetSegment s : segments) {
this.segmentIds.add(s.getSegmentId());
}
}
public void setLocationLocalId(long localId) {
this.locationLocalId = localId;
}
public long getLocationLocalId() {
return this.locationLocalId;
}
public String getName() {
return this.name;
}
public boolean equals(Object obj) {
if (obj instanceof TntMbox) {
return ((TntMbox)obj).getName().equalsIgnoreCase(this.getName()) && ((TntMbox)obj).getLocationLocalId() == this.getLocationLocalId();
}
return false;
}
public int hashCode() {
return this.name.hashCode();
}
}