Record Class ResilienceFindings.NVerdict
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.ResilienceFindings.NVerdict
- Record Components:
level- the verdictscenarios- how many scenarios it coverssurvived- how many were unaffected or survived at full servicedegraded- how many degradedoutages- how many caused an outagestatement- 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 Summary
ConstructorsConstructorDescriptionNVerdict(ResilienceFindings.Level level, int scenarios, int survived, int degraded, int outages, String statement) Creates an instance of aNVerdictrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintdegraded()Returns the value of thedegradedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.level()Returns the value of thelevelrecord component.intoutages()Returns the value of theoutagesrecord component.intReturns the value of thescenariosrecord component.Returns the value of thestatementrecord component.intsurvived()Returns the value of thesurvivedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NVerdict
public NVerdict(ResilienceFindings.Level level, int scenarios, int survived, int degraded, int outages, String statement) Creates an instance of aNVerdictrecord class.- Parameters:
level- the value for thelevelrecord componentscenarios- the value for thescenariosrecord componentsurvived- the value for thesurvivedrecord componentdegraded- the value for thedegradedrecord componentoutages- the value for theoutagesrecord componentstatement- the value for thestatementrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
level
-
scenarios
-
survived
-
degraded
-
outages
-
statement
-