RecommendationAlgorithmInclusionRuleImpl.java
1.22 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.cq.targetrecommendations.impl.model;
import com.adobe.cq.targetrecommendations.api.model.RecommendationAlgorithmInclusionRule;
import java.util.Arrays;
import java.util.List;
public class RecommendationAlgorithmInclusionRuleImpl
implements RecommendationAlgorithmInclusionRule {
private String attribute;
private String operation;
private String values;
private int lowRange;
private int highRange;
public RecommendationAlgorithmInclusionRuleImpl(String attribute, String operation, String values, int lowRange, int highRange) {
this.attribute = attribute;
this.operation = operation;
this.values = values;
this.lowRange = lowRange;
this.highRange = highRange;
}
@Override
public String getAttribute() {
return this.attribute;
}
@Override
public String getOperation() {
return this.operation;
}
@Override
public List<String> getValues() {
return Arrays.asList(this.values.split(","));
}
@Override
public int getLowRange() {
return this.lowRange;
}
@Override
public int getHighRange() {
return this.highRange;
}
}