Record Class EstateReport.ActionItem

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.estate.EstateReport.ActionItem
Record Components:
rank - 1 for the most important
findingId - the finding id
category - the category
severity - the severity
confidence - the confidence
action - the recommended action
impact - the financial impact, as text
score - the priority score
Enclosing class:
EstateReport

public static record EstateReport.ActionItem(int rank, String findingId, FindingCategory category, Severity severity, Confidence confidence, String action, String impact, double score) extends Record
One entry of the prioritised action list.
  • Constructor Details

    • ActionItem

      public ActionItem(int rank, String findingId, FindingCategory category, Severity severity, Confidence confidence, String action, String impact, double score)
      Creates an instance of a ActionItem record class.
      Parameters:
      rank - the value for the rank record component
      findingId - the value for the findingId record component
      category - the value for the category record component
      severity - the value for the severity record component
      confidence - the value for the confidence record component
      action - the value for the action record component
      impact - the value for the impact record component
      score - the value for the score record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • rank

      public int rank()
      Returns the value of the rank record component.
      Returns:
      the value of the rank record component
    • findingId

      public String findingId()
      Returns the value of the findingId record component.
      Returns:
      the value of the findingId record component
    • category

      public FindingCategory category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • severity

      public Severity severity()
      Returns the value of the severity record component.
      Returns:
      the value of the severity record component
    • confidence

      public Confidence confidence()
      Returns the value of the confidence record component.
      Returns:
      the value of the confidence record component
    • action

      public String action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • impact

      public String impact()
      Returns the value of the impact record component.
      Returns:
      the value of the impact record component
    • score

      public double score()
      Returns the value of the score record component.
      Returns:
      the value of the score record component