Class Traits

java.lang.Object
com.flagsmith.flagengine.Traits

public class Traits extends Object
Traits

A map of traits associated with the identity, where the key is the trait name and the value is the trait value.

  • Constructor Details

    • Traits

      public Traits()
      No args constructor for use in serialization.
    • Traits

      public Traits(Traits source)
      Copy constructor.
      Parameters:
      source - the object being copied
  • Method Details

    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • setAdditionalProperty

      public void setAdditionalProperty(String name, Object value)
      Set additional property.
      Parameters:
      name - the name
      value - the value
    • withAdditionalProperty

      public Traits withAdditionalProperty(String name, Object value)
      Fluent setter for additional property.
      Parameters:
      name - the name
      value - the value
      Returns:
      the Traits instance
    • toString

      public String toString()
      Overrides:
      toString in class Object