Package growthbook.sdk.java.model
Class Filter
java.lang.Object
growthbook.sdk.java.model.Filter
Object used for mutual exclusion and filtering users out of experiments based on random hashes.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Filter.FilterBuilderbuilder()The attribute to use (default to "id")The hash version to use (default to 2)Array of ranges that are includedgetSeed()The seed used in the hashtoJson()toString()
-
Constructor Details
-
Filter
public Filter(@Nullable String seed, List<BucketRange> ranges, String attribute, Integer hashVersion) Object used for mutual exclusion and filtering users out of experiments based on random hashes.- Parameters:
seed- The seed used in the hashranges- Array of ranges that are includedattribute- The attribute to use (default: "id")hashVersion- The hash version to use (default: 2)
-
-
Method Details