Package com.configcat

Class User


  • public class User
    extends java.lang.Object
    An object containing attributes to properly identify a given user for variation evaluation. Its only mandatory attribute is the identifier.

    Please note that the User class is not designed to be used as a DTO (data transfer object). (Since the type of the attributes property is polymorphic, it's not guaranteed that deserializing a serialized instance produces an instance with an identical or even valid data content.)

    • Method Detail

      • getIdentifier

        public java.lang.String getIdentifier()
      • newBuilder

        public static User.Builder newBuilder()
        Creates a new builder instance.
        Returns:
        the new builder.
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String key)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object