Class Namespace

java.lang.Object
growthbook.sdk.java.Namespace

@Deprecated public class Namespace extends Object
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)
  • Constructor Details

    • Namespace

      public Namespace(String id, Float rangeStart, Float rangeEnd)
      Deprecated.
  • Method Details

    • toJson

      public String toJson()
      Deprecated.
      A JSON string for the namespace, resulting in a triple value [id, rangeStart, rangeEnd]
      Returns:
      JSON string
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • getDeserializer

      public static com.google.gson.JsonDeserializer<Namespace> getDeserializer()
      Deprecated.
      a Gson deserializer for Namespace
      Returns:
      a deserializer for Namespace
    • getSerializer

      public static com.google.gson.JsonSerializer<Namespace> getSerializer()
      Deprecated.
      a Gson serializer for Namespace
      Returns:
      a serializer for Namespace
    • builder

      public static Namespace.NamespaceBuilder builder()
      Deprecated.
    • getId

      public String getId()
      Deprecated.
    • getRangeStart

      public Float getRangeStart()
      Deprecated.
    • getRangeEnd

      public Float getRangeEnd()
      Deprecated.
    • setId

      public void setId(String id)
      Deprecated.
    • setRangeStart

      public void setRangeStart(Float rangeStart)
      Deprecated.
    • setRangeEnd

      public void setRangeEnd(Float rangeEnd)
      Deprecated.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object