@Deprecated
public class SegmentRule
extends java.lang.Object
Constructor and Description |
---|
SegmentRule(java.util.List<com.launchdarkly.client.Clause> clauses,
java.lang.Integer weight,
java.lang.String bucketBy)
Deprecated.
Used internally to construct an instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matchUser(LDUser user,
java.lang.String segmentKey,
java.lang.String salt)
Deprecated.
Used internally to match a user against a segment.
|
public SegmentRule(java.util.List<com.launchdarkly.client.Clause> clauses, java.lang.Integer weight, java.lang.String bucketBy)
clauses
- the clauses in the ruleweight
- the rollout weightbucketBy
- the attribute for computing a rolloutpublic boolean matchUser(LDUser user, java.lang.String segmentKey, java.lang.String salt)
user
- the user to matchsegmentKey
- the segment keysalt
- the segment's salt string