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.)

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  User.Builder
      A builder that helps construct a User instance.
    • Method Detail

      • newBuilder

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

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