-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathImpression.java
More file actions
76 lines (60 loc) · 1.68 KB
/
Impression.java
File metadata and controls
76 lines (60 loc) · 1.68 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package io.split.client.impressions;
import java.util.Map;
/**
* Created by adilaijaz on 3/23/17.
*/
public class Impression {
private final String _key;
private final String _bucketingKey;
private final String _split;
private final String _treatment;
private final long _time;
private final String _appliedRule;
private final Long _changeNumber;
private Long _pt;
private final Map<String, Object> _attributes;
private final String _properties;
public Impression(String key, String bucketingKey, String featureFlag, String treatment, long time, String appliedRule,
Long changeNumber, Map<String, Object> atributes, String properties) {
_key = key;
_bucketingKey = bucketingKey;
_split = featureFlag;
_treatment = treatment;
_time = time;
_appliedRule = appliedRule;
_changeNumber = changeNumber;
_attributes = atributes;
_properties = properties;
}
public String key() {
return _key;
}
public String bucketingKey() {
return _bucketingKey;
}
public String split() {
return _split;
}
public String treatment() {
return _treatment;
}
public long time() {
return _time;
}
public String appliedRule() {
return _appliedRule;
}
public Long changeNumber() {
return _changeNumber;
}
public Map<String, Object> attributes() {
return _attributes;
}
public Long pt() {
return _pt;
}
public Impression withPreviousTime(Long pt) { _pt = pt; return this; }
public String properties() {
return _properties;
}
}