Record Class SensitivityReport.WeightRange
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.solve.SensitivityReport.WeightRange
- Record Components:
objective- the objective idweight- its current share of the total weight, 0..1low- the smallest share that keeps the recommendationhigh- the largest share that keeps the recommendationbelowTakeover- the portfolio recommended just belowlow, ornullwhenlowis 0aboveTakeover- the portfolio recommended just abovehigh, ornullwhenhighis 1
- Enclosing class:
SensitivityReport
public static record SensitivityReport.WeightRange(String objective, double weight, double low, double high, String belowTakeover, String aboveTakeover)
extends Record
The range of one objective's share of the total weight over which the recommendation stays the same,
the other weights keeping their proportions to each other.
-
Constructor Summary
ConstructorsConstructorDescriptionWeightRange(String objective, double weight, double low, double high, String belowTakeover, String aboveTakeover) Creates an instance of aWeightRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaboveTakeoverrecord component.Returns the value of thebelowTakeoverrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublehigh()Returns the value of thehighrecord component.doublelow()Returns the value of thelowrecord component.Returns the value of theobjectiverecord component.final StringtoString()Returns a string representation of this record class.doubleweight()Returns the value of theweightrecord component.
-
Constructor Details
-
WeightRange
public WeightRange(String objective, double weight, double low, double high, String belowTakeover, String aboveTakeover) Creates an instance of aWeightRangerecord class.- Parameters:
objective- the value for theobjectiverecord componentweight- the value for theweightrecord componentlow- the value for thelowrecord componenthigh- the value for thehighrecord componentbelowTakeover- the value for thebelowTakeoverrecord componentaboveTakeover- the value for theaboveTakeoverrecord 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. -
objective
-
weight
-
low
-
high
-
belowTakeover
Returns the value of thebelowTakeoverrecord component.- Returns:
- the value of the
belowTakeoverrecord component
-
aboveTakeover
Returns the value of theaboveTakeoverrecord component.- Returns:
- the value of the
aboveTakeoverrecord component
-