public final class VisitorProfile
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VisitorProfile.Builder
Convenience class useful in creating a VisitorProfile instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Determine whether this instance equals another profile.
|
static VisitorProfile |
fromJSON(java.lang.String json)
Creates a VisitorProfile instance from a JSON string.
|
AttributeGroup<AudienceAttribute> |
getAudiences() |
AttributeGroup<BadgeAttribute> |
getBadges() |
long |
getCreationTimestamp() |
CurrentVisit |
getCurrentVisit() |
AttributeGroup<DateAttribute> |
getDates() |
AttributeGroup<FlagAttribute> |
getFlags() |
AttributeGroup<MetricAttribute> |
getMetrics() |
AttributeGroup<PropertyAttribute> |
getProperties() |
java.lang.String |
getSource()
Get the source that generated this profile (a JSON-formatted string) it may be null.
|
int |
hashCode() |
boolean |
isNewVisitor() |
java.lang.String |
toString()
Produces a human-readable representation of this visitor profile's values.
|
public boolean equals(java.lang.Object o)
o
- another profile to compare against.public int hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
public AttributeGroup<AudienceAttribute> getAudiences()
public AttributeGroup<BadgeAttribute> getBadges()
public boolean isNewVisitor()
public CurrentVisit getCurrentVisit()
public java.lang.String getSource()
public static VisitorProfile fromJSON(java.lang.String json) throws org.json.JSONException
json
- a JSON formatted string.org.json.JSONException
- if malformed json is providedpublic final long getCreationTimestamp()
public final AttributeGroup<FlagAttribute> getFlags()
public final AttributeGroup<MetricAttribute> getMetrics()
public final AttributeGroup<PropertyAttribute> getProperties()
public final AttributeGroup<DateAttribute> getDates()