Class IncidentDependency

  • All Implemented Interfaces:
    java.io.Serializable

    public class IncidentDependency
    extends java.lang.Object
    implements java.io.Serializable
    IncidentDependency describes a link to an IncidentReport previous raised that covers a similar or the same issue on these resources.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      IncidentDependency()
      Typical Constructor
      IncidentDependency​(IncidentDependency template)
      Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null;
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      java.lang.String getDescription()
      Return the description of the dependency.
      java.lang.String getPreviouslyReportedIncidentGUID()
      Return the identifier of an incident that this incident is dependent on.
      int hashCode()
      Create a hash code for this element type.
      void setDescription​(java.lang.String description)
      Set up the description of the dependency.
      void setPreviouslyReportedIncidentGUID​(java.lang.String previouslyReportedIncidentGUID)
      Set up the identifier of an incident that this incident is dependent on.
      java.lang.String toString()
      Standard toString method.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IncidentDependency

        public IncidentDependency()
        Typical Constructor
      • IncidentDependency

        public IncidentDependency​(IncidentDependency template)
        Copy/clone Constructor the resulting object will return true if tested with this.equals(template) as long as the template object is not null;
        Parameters:
        template - object being copied
    • Method Detail

      • getPreviouslyReportedIncidentGUID

        public java.lang.String getPreviouslyReportedIncidentGUID()
        Return the identifier of an incident that this incident is dependent on.
        Returns:
        string identifier
      • setPreviouslyReportedIncidentGUID

        public void setPreviouslyReportedIncidentGUID​(java.lang.String previouslyReportedIncidentGUID)
        Set up the identifier of an incident that this incident is dependent on.
        Parameters:
        previouslyReportedIncidentGUID - string identifier
      • getDescription

        public java.lang.String getDescription()
        Return the description of the dependency.
        Returns:
        string text
      • setDescription

        public void setDescription​(java.lang.String description)
        Set up the description of the dependency.
        Parameters:
        description - string text
      • toString

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

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class java.lang.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 java.lang.Object
        Returns:
        int hash code