Package growthbook.sdk.java
Class Namespace
java.lang.Object
growthbook.sdk.java.Namespace
Deprecated.
A tuple that specifies what part of a namespace an experiment includes. If two experiments are in the same namespace and their ranges don't overlap, they wil be mutually exclusive.
The tuple has 3 parts:
- The namespace id (string)
- The beginning of the range (float, between 0 and 1)
- The end of the range (float, between 0 and 1)
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Namespace.NamespaceBuilder
builder()
Deprecated.boolean
Deprecated.static com.google.gson.JsonDeserializer<Namespace>
Deprecated.a Gson deserializer forNamespace
getId()
Deprecated.Deprecated.Deprecated.static com.google.gson.JsonSerializer<Namespace>
Deprecated.a Gson serializer forNamespace
int
hashCode()
Deprecated.void
Deprecated.void
setRangeEnd
(Float rangeEnd) Deprecated.void
setRangeStart
(Float rangeStart) Deprecated.toJson()
Deprecated.A JSON string for the namespace, resulting in a triple value [id, rangeStart, rangeEnd]toString()
Deprecated.
-
Constructor Details
-
Namespace
Deprecated.
-
-
Method Details
-
toJson
Deprecated.A JSON string for the namespace, resulting in a triple value [id, rangeStart, rangeEnd]- Returns:
- JSON string
-
toString
Deprecated. -
getDeserializer
Deprecated.a Gson deserializer forNamespace
- Returns:
- a deserializer for
Namespace
-
getSerializer
Deprecated.a Gson serializer forNamespace
- Returns:
- a serializer for
Namespace
-
builder
Deprecated. -
getId
Deprecated. -
getRangeStart
Deprecated. -
getRangeEnd
Deprecated. -
setId
Deprecated. -
setRangeStart
Deprecated. -
setRangeEnd
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated.
-