Package de.xima.fc.user.presence
Class TrackingId
- java.lang.Object
-
- de.xima.fc.user.presence.TrackingId
-
- All Implemented Interfaces:
Serializable
public final class TrackingId extends Object implements Serializable
Identifies a tracked browser view independently of its user and resource.- Since:
- 8.6.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetValue()The string representation of this identifier.inthashCode()static TrackingIdof(@NotEmpty String value)Creates an identifier from a string, or generates a random identifier if the string is null, empty or blank.static TrackingIdrandom()Creates a random identifier.StringtoString()
-
-
-
Method Detail
-
of
public static TrackingId of(@NotEmpty @NotEmpty String value)
Creates an identifier from a string, or generates a random identifier if the string is null, empty or blank.- Parameters:
value- the identifier string- Returns:
- the supplied identifier or a newly generated one
- Since:
- 8.6.0
-
random
public static TrackingId random()
Creates a random identifier.- Returns:
- an identifier based on a random UUID
- Since:
- 8.6.0
-
getValue
public String getValue()
The string representation of this identifier.- Since:
- 8.6.0
-
-