public class FPUser extends Object
| Constructor and Description |
|---|
FPUser()
Creates a new FPUser
|
FPUser(String key)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containAttr(String name)
Check attribute exists
|
String |
getAttr(String name)
Get the specified attribute value
|
Map<String,String> |
getAttrs()
Get FPUser all attribute
|
String |
getKey()
Get FPUser unique identifier
|
void |
setAttrs(Map<String,String> attrs)
Add multiple attribute to the user
|
FPUser |
stableRollout(String key)
Set user unique id for percentage rollout
|
FPUser |
with(String name,
String value)
Add an attribute to the user
|
public FPUser()
@Deprecated public FPUser(String key)
key - user unique id for percentage rolloutpublic FPUser stableRollout(String key)
key - user unique id for percentage rolloutpublic FPUser with(String name, String value)
name - attribute namevalue - attribute valuepublic boolean containAttr(String name)
name - attribute namepublic String getKey()
public void setAttrs(Map<String,String> attrs)
attrs - attribute setCopyright © 2023. All rights reserved.