We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2451d commit 73fa6e2Copy full SHA for 73fa6e2
src/main/java/com/featureprobe/sdk/server/model/SegmentRule.java
@@ -11,6 +11,12 @@ public class SegmentRule {
11
12
private List<Condition> conditions;
13
14
+ public SegmentRule(){}
15
+
16
+ public SegmentRule(List<Condition> conditions) {
17
+ this.conditions = conditions;
18
+ }
19
20
public HitResult hit(FPUser user, Map<String, Segment> segments) {
21
for (Condition condition : conditions) {
22
if (condition.getType() != ConditionType.SEGMENT && !user.containAttr(condition.getSubject())) {
0 commit comments