Record Class DesignDecisionRecord.WeightRange
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.WeightRange
- Record Components:
objective- the objective id- its current share, 0..1low- the smallest share that keeps the recommendationhigh- the largest share that keeps the recommendationbelowTakeover- the option recommended belowlow, ornullaboveTakeover- the option recommended abovehigh, ornull
- Enclosing class:
DesignDecisionRecord
-
Constructor Summary
ConstructorsConstructorDescriptionWeightRange(String objective, double share, 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.doubleshare()Returns the value of thesharerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WeightRange
public WeightRange(String objective, double share, double low, double high, String belowTakeover, String aboveTakeover) Creates an instance of aWeightRangerecord class.- Parameters:
objective- the value for theobjectiverecord componentshare- the value for thesharerecord 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
-
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
-