public class UnlaunchUser extends Object
Modifier and Type | Method | Description |
---|---|---|
void |
clearAllAttributes() |
|
static UnlaunchUser |
create(String id) |
|
static UnlaunchUser |
createAnonymous() |
|
static UnlaunchUser |
createWithAttributes(String id,
UnlaunchAttribute... attributes) |
|
boolean |
equals(Object o) |
Returns true if the given UnlaunchUser object has same id as this object
and the user attributes map has the same mappings as this map.
|
Map<String,io.unlaunch.engine.UnlaunchValue> |
getAllAttributes() |
Returns a map of user attributes with values.
|
Object |
getAttribute(String key) |
Returns the value to which the specified key is mapped,
or
null if attributes map do not have the key. |
String |
getId() |
Returns id of the UnlaunchUser
|
int |
hashCode() |
|
void |
putAttribute(String key,
Object value) |
Key should be non-null and non-empty string.
|
void |
setAttributes(Map<String,Object> attributes) |
public static UnlaunchUser create(String id)
public static UnlaunchUser createWithAttributes(String id, UnlaunchAttribute... attributes)
public static UnlaunchUser createAnonymous()
public Map<String,io.unlaunch.engine.UnlaunchValue> getAllAttributes()
public void putAttribute(String key, Object value)
key
- attribute keyvalue
- attribute valuepublic Object getAttribute(String key)
null
if attributes map do not have the key.key
- the key whose associated value is to be returnednull
if attributes do not contain this keyNullPointerException
- if the specified key is null or is
empty.public void clearAllAttributes()
public String getId()
public boolean equals(Object o)
Copyright © 2021 Unlaunch. All rights reserved.