Package com.adobe.marketing.mobile
Class VisitorID
-
- All Implemented Interfaces:
public class VisitorIDAn identifier to be used with the Adobe Experience Cloud Visitor ID Service
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumVisitorID.AuthenticationStateUsed to indicate the authentication state for the current VisitorID
-
Field Summary
Fields Modifier and Type Field Description public final VisitorID.AuthenticationStateauthenticationStatepublic final Stringidpublic final StringidOriginpublic final StringidType
-
Constructor Summary
Constructors Constructor Description VisitorID(String idOrigin, String idType, String id, VisitorID.AuthenticationState authenticationState)Constructor initializes id, idOrigin, idType and authenticationState.
-
Method Summary
Modifier and Type Method Description VisitorID.AuthenticationStategetAuthenticationState()AuthenticationState for this VisitorID final StringgetId()ID for this VisitorID final StringgetIdOrigin()ID Origin for this VisitorID final StringgetIdType()ID Type for this VisitorID booleanequals(Object o)Compares the provided VisitorID object with this and determines if they are equal. inthashCode()-
-
Constructor Detail
-
VisitorID
VisitorID(String idOrigin, String idType, String id, VisitorID.AuthenticationState authenticationState)
- Parameters:
idOrigin- String containing the ID Origin for the VisitorIDidType-Stringcontaining the ID Type for theVisitorID; it should not be null/emptyid-Stringcontaining the ID for theVisitorID; it should not be null/emptyauthenticationState- AuthenticationState containing the authentication state for theVisitorID
-
-
Method Detail
-
getAuthenticationState
VisitorID.AuthenticationState getAuthenticationState()
AuthenticationState for this VisitorID
- Returns:
-
getIdOrigin
final String getIdOrigin()
ID Origin for this VisitorID
- Returns:
VisitorID Origin string
-
equals
boolean equals(Object o)
Compares the provided VisitorID object with this and determines if they are equal.
The comparison checks that the provided Object parameter is a
VisitorIDinstance. If it is, then checks the equality of the idType and id fields between the two objects.- Parameters:
o-VisitorIDobject to compare against- Returns:
booleanindicating whether the providedVisitorIDobject is equal to this
-
hashCode
int hashCode()
-
-
-
-