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.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
static com.google.gson.JsonDeserializer<BucketRange>
static com.google.gson.JsonSerializer<BucketRange>
int
hashCode()
void
setRangeEnd
(Float rangeEnd) void
setRangeStart
(Float rangeStart) toJson()
Converts the bucket range to the serialized tupletoString()
-
Constructor Details
-
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
-
builder
-
getRangeStart
-
getRangeEnd
-
setRangeStart
-
setRangeEnd
-