Package growthbook.sdk.java
Class BucketRange
java.lang.Object
growthbook.sdk.java.BucketRange
A tuple that describes a range of the number line between 0 and 1.
The tuple has 2 parts, both floats - the start of the range and the end.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static com.google.gson.JsonDeserializer<BucketRange>
static com.google.gson.JsonSerializer<BucketRange>
int
hashCode()
toJson()
Converts the bucket range to the serialized tupletoString()
-
Constructor Details
-
BucketRange
public BucketRange()
-
-
Method Details
-
toJson
Converts the bucket range to the serialized tuple- Returns:
- JSON string of the bucket range
-
toString
-
equals
-
hashCode
public int hashCode() -
getSerializer
- Returns:
- serializer for
BucketRange
-
getDeserializer
- Returns:
- deserializer for
BucketRange
-