Class StickyAssignmentsDocument

java.lang.Object
growthbook.sdk.java.stickyBucketing.StickyAssignmentsDocument

public class StickyAssignmentsDocument extends Object
StickyAssignmentsDocument class is presenting a model for accumulate such data as: attributeName, attributeValue and assignments
  • Constructor Details

    • StickyAssignmentsDocument

      public StickyAssignmentsDocument(String attributeName, String attributeValue, Map<String,String> assignments)
    • StickyAssignmentsDocument

      public StickyAssignmentsDocument()
  • Method Details

    • getAttributeName

      public String getAttributeName()
      The name of the attribute used to identify the user (e.g. `id`, `cookie_id`, etc.)
    • getAttributeValue

      public String getAttributeValue()
      The value of the attribute (e.g. `123`)
    • getAssignments

      public Map<String,String> getAssignments()
      A dictionary of persisted experiment assignments. For example: `{"exp1__0":"control"}`
    • setAttributeName

      public void setAttributeName(String attributeName)
      The name of the attribute used to identify the user (e.g. `id`, `cookie_id`, etc.)
    • setAttributeValue

      public void setAttributeValue(String attributeValue)
      The value of the attribute (e.g. `123`)
    • setAssignments

      public void setAssignments(Map<String,String> assignments)
      A dictionary of persisted experiment assignments. For example: `{"exp1__0":"control"}`
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object