Class Event.AliasEvent

  • Enclosing class:
    Event

    public static final class Event.AliasEvent
    extends Event
    An event generated by aliasing users
    Since:
    5.4.0
    • Constructor Detail

      • AliasEvent

        public AliasEvent​(long timestamp,
                          LDUser user,
                          LDUser previousUser)
        Constructs an alias event.
        Parameters:
        timestamp - when the event was created
        user - the user being aliased to
        previousUser - the user being aliased from
    • Method Detail

      • getKey

        public java.lang.String getKey()
        Get the key of the user being aliased to
        Returns:
        the user key
      • getContextKind

        public java.lang.String getContextKind()
        Get the kind of the user being aliased to
        Returns:
        the context kind
      • getPreviousKey

        public java.lang.String getPreviousKey()
        Get the key of the user being aliased from
        Returns:
        the previous user key
      • getPreviousContextKind

        public java.lang.String getPreviousContextKind()
        Get the kind of the user being aliased from
        Returns:
        the previous context kind