Record Class ScenarioCatalog.Pairs
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.resilience.ScenarioCatalog.Pairs
- Record Components:
scenarios- the pairs simulated, in ordertotal- how many distinct pairs exist
- Enclosing class:
ScenarioCatalog
public static record ScenarioCatalog.Pairs(List<FailureScenario> scenarios, int total)
extends Record
The pairwise scenarios and how many exist.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanfinal inthashCode()Returns a hash code value for this object.Returns the value of thescenariosrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
Pairs
Makes the list immutable.
-
-
Method Details
-
exhaustive
public boolean exhaustive()- Returns:
truewhen every pair is inscenarios()
-
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. -
scenarios
-
total
-