Record Class ResilienceFindings.NVerdict

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.ResilienceFindings.NVerdict
Record Components:
level - the verdict
scenarios - how many scenarios it covers
survived - how many were unaffected or survived at full service
degraded - how many degraded
outages - how many caused an outage
statement - the verdict in words, including its coverage
Enclosing class:
ResilienceFindings

public static record ResilienceFindings.NVerdict(ResilienceFindings.Level level, int scenarios, int survived, int degraded, int outages, String statement) extends Record
The N-1 or N-2 verdict.
  • Constructor Details

    • NVerdict

      public NVerdict(ResilienceFindings.Level level, int scenarios, int survived, int degraded, int outages, String statement)
      Creates an instance of a NVerdict record class.
      Parameters:
      level - the value for the level record component
      scenarios - the value for the scenarios record component
      survived - the value for the survived record component
      degraded - the value for the degraded record component
      outages - the value for the outages record component
      statement - the value for the statement 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.
    • level

      public ResilienceFindings.Level level()
      Returns the value of the level record component.
      Returns:
      the value of the level record component
    • scenarios

      public int scenarios()
      Returns the value of the scenarios record component.
      Returns:
      the value of the scenarios record component
    • survived

      public int survived()
      Returns the value of the survived record component.
      Returns:
      the value of the survived record component
    • degraded

      public int degraded()
      Returns the value of the degraded record component.
      Returns:
      the value of the degraded record component
    • outages

      public int outages()
      Returns the value of the outages record component.
      Returns:
      the value of the outages record component
    • statement

      public String statement()
      Returns the value of the statement record component.
      Returns:
      the value of the statement record component