Class LeadershipEvent

    • Constructor Detail

      • LeadershipEvent

        public LeadershipEvent​(LeadershipEvent.Type type,
                               Leadership leadership)
        Creates an event of a given type and for the specified instance and the current time.
        Parameters:
        type - leadership event type
        leadership - event subject
      • LeadershipEvent

        public LeadershipEvent​(LeadershipEvent.Type type,
                               Leadership leadership,
                               long time)
        Creates an event of a given type and for the specified subject and time.
        Parameters:
        type - leadership event type
        leadership - event subject
        time - occurrence time
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object