Class HostEvent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  HostEvent.Type
      Type of host events.
    • Constructor Detail

      • HostEvent

        public HostEvent​(HostEvent.Type type,
                         Host host)
        Creates an event of a given type and for the specified host and the current time.
        Parameters:
        type - host event type
        host - event host subject
      • HostEvent

        public HostEvent​(HostEvent.Type type,
                         Host host,
                         long time)
        Creates an event of a given type and for the specified host and time.
        Parameters:
        type - host event type
        host - event host subject
        time - occurrence time
      • HostEvent

        public HostEvent​(HostEvent.Type type,
                         Host host,
                         Host prevSubject)
        Creates an event with previous subject. The previous subject is ignored if the type is not moved or updated
        Parameters:
        type - host event type
        host - event host subject
        prevSubject - previous host subject
    • Method Detail

      • prevSubject

        public Host prevSubject()
        Gets the previous subject in this host event.
        Returns:
        the previous subject, or null if previous subject is not specified.