Record Class SensitivityReport.BindingConstraint
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.solve.SensitivityReport.BindingConstraint
- Record Components:
constraint- the constraint idbinding-truewhen removing it changes the recommendationrejectedAlone- how many portfolios it alone rejectedalternative- the portfolio recommended without it, when bindingexplanation- a sentence for the reader
- Enclosing class:
SensitivityReport
-
Constructor Summary
ConstructorsConstructorDescriptionBindingConstraint(String constraint, boolean binding, int rejectedAlone, String alternative, String explanation) Creates an instance of aBindingConstraintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thealternativerecord component.booleanbinding()Returns the value of thebindingrecord component.Returns the value of theconstraintrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplanationrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of therejectedAlonerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BindingConstraint
public BindingConstraint(String constraint, boolean binding, int rejectedAlone, String alternative, String explanation) Creates an instance of aBindingConstraintrecord class.- Parameters:
constraint- the value for theconstraintrecord componentbinding- the value for thebindingrecord componentrejectedAlone- the value for therejectedAlonerecord componentalternative- the value for thealternativerecord componentexplanation- the value for theexplanationrecord 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. -
constraint
Returns the value of theconstraintrecord component.- Returns:
- the value of the
constraintrecord component
-
binding
-
rejectedAlone
public int rejectedAlone()Returns the value of therejectedAlonerecord component.- Returns:
- the value of the
rejectedAlonerecord component
-
alternative
Returns the value of thealternativerecord component.- Returns:
- the value of the
alternativerecord component
-
explanation
Returns the value of theexplanationrecord component.- Returns:
- the value of the
explanationrecord component
-