public abstract class AnswersEvent<T extends AnswersEvent>
extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NUM_ATTRIBUTES |
static int |
MAX_STRING_LENGTH |
| Constructor and Description |
|---|
AnswersEvent() |
| Modifier and Type | Method and Description |
|---|---|
T |
putCustomAttribute(String key,
Number value)
Put
Number attribute. |
T |
putCustomAttribute(String key,
String value)
Put
String attribute. |
public static final int MAX_STRING_LENGTH
public static final int MAX_NUM_ATTRIBUTES
public T putCustomAttribute(String key, String value)
String attribute. Answers uses String attributes as categorical data,
allowing comparison across different category values. A maximum of
MAX_NUM_ATTRIBUTES attributes is allowed for each event.key - attribute key string, not null, no more than MAX_STRING_LENGTH charsvalue - attribute value string, not null, no more than MAX_STRING_LENGTH charspublic T putCustomAttribute(String key, Number value)
Number attribute. Answers uses Number attributes to provide information
about the distribution of values over time. A maximum of MAX_NUM_ATTRIBUTES
attributes is allowed for each event.key - attribute key string, not null, no more than MAX_STRING_LENGTH charsvalue - attribute value number, not null