Class WatchdogGovernanceEvent

    • Constructor Detail

      • WatchdogGovernanceEvent

        public WatchdogGovernanceEvent()
        Default constructor
      • WatchdogGovernanceEvent

        public WatchdogGovernanceEvent​(WatchdogGovernanceEvent template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getEventType

        public WatchdogEventType getEventType()
        Return the type of event (used to get the class to cast to).
        Returns:
        event type
      • setEventType

        public void setEventType​(WatchdogEventType eventType)
        Set up the event type. This should tie up with the subclass of the event.
        Parameters:
        eventType - event type
      • toString

        public String toString()
        Standard toString method.
        Overrides:
        toString in class Object
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class Object
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class Object
        Returns:
        int hash code