Package com.launchdarkly.sdk
Class UserAttribute
- java.lang.Object
- 
- com.launchdarkly.sdk.UserAttribute
 
- 
- All Implemented Interfaces:
- JsonSerializable
 
 @Deprecated public final class UserAttribute extends java.lang.Object implements JsonSerializable Represents a built-in or custom attribute name supported byLDUser.Application code rarely needs to use this type; it is used internally by the SDK for efficiency in flag evaluations. It can also be used as a reference for the constant names of built-in attributes such as EMAIL. However, in the newerLDContextmodel, there are very few reserved attribute names, so the equivalent ofEMAILwould simply be a custom attribute called "email".For a fuller description of user attributes and how they can be referenced in feature flag rules, see the reference guides on Setting user attributes and Targeting users. 
- 
- 
Field SummaryFields Modifier and Type Field Description static UserAttributeANONYMOUSDeprecated.Represents the anonymous attribute.static UserAttributeAVATARDeprecated.Represents the avatar URL attribute.static UserAttributeCOUNTRYDeprecated.Represents the country attribute.static UserAttributeEMAILDeprecated.Represents the user key attribute.static UserAttributeFIRST_NAMEDeprecated.Represents the first name attribute.static UserAttributeIPDeprecated.Represents the IP address attribute.static UserAttributeKEYDeprecated.Represents the user key attribute.static UserAttributeLAST_NAMEDeprecated.Represents the last name attribute.static UserAttributeNAMEDeprecated.Represents the full name attribute.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Deprecated.static UserAttributeforName(java.lang.String name)Deprecated.Returns a UserAttribute instance for the specified attribute name.java.lang.StringgetName()Deprecated.Returns the case-sensitive attribute name.inthashCode()Deprecated.booleanisBuiltIn()Deprecated.Returns true for a built-in attribute or false for a custom attribute.java.lang.StringtoString()Deprecated.
 
- 
- 
- 
Field Detail- 
KEYpublic static final UserAttribute KEY Deprecated.Represents the user key attribute.
 - 
IPpublic static final UserAttribute IP Deprecated.Represents the IP address attribute.
 - 
EMAILpublic static final UserAttribute EMAIL Deprecated.Represents the user key attribute.
 - 
NAMEpublic static final UserAttribute NAME Deprecated.Represents the full name attribute.
 - 
AVATARpublic static final UserAttribute AVATAR Deprecated.Represents the avatar URL attribute.
 - 
FIRST_NAMEpublic static final UserAttribute FIRST_NAME Deprecated.Represents the first name attribute.
 - 
LAST_NAMEpublic static final UserAttribute LAST_NAME Deprecated.Represents the last name attribute.
 - 
COUNTRYpublic static final UserAttribute COUNTRY Deprecated.Represents the country attribute.
 - 
ANONYMOUSpublic static final UserAttribute ANONYMOUS Deprecated.Represents the anonymous attribute.
 
- 
 - 
Method Detail- 
forNamepublic static UserAttribute forName(java.lang.String name) Deprecated.Returns a UserAttribute instance for the specified attribute name.For built-in attributes, the same instances are always reused and isBuiltIn()will return true. For custom attributes, a new instance is created andisBuiltIn()will return false.- Parameters:
- name- the attribute name
- Returns:
- a UserAttribute
 
 - 
getNamepublic java.lang.String getName() Deprecated.Returns the case-sensitive attribute name.- Returns:
- the attribute name
 
 - 
isBuiltInpublic boolean isBuiltIn() Deprecated.Returns true for a built-in attribute or false for a custom attribute.- Returns:
- true if it is a built-in attribute
 
 - 
equalspublic boolean equals(java.lang.Object other) Deprecated.- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() Deprecated.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() Deprecated.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-