Record Class DesignDecisionRecord.Alternative
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Alternative
- Record Components:
portfolio- the portfolio keyweightedScore- the weighted score, 0..100recommended- whether it is the recommendationvalues- each known objective value, by objective idmonthlyCost- the expected monthly total, ornullwhen it has none in one currencycurrency- the currency ofmonthlyCost, ornullgains- where it is better than the recommendation, one phrase per objectivetradesAway- where it is worse than the recommendation, one phrase per objective
- Enclosing class:
DesignDecisionRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.gains()Returns the value of thegainsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themonthlyCostrecord component.Returns the value of theportfoliorecord component.booleanReturns the value of therecommendedrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetradesAwayrecord component.values()Returns the value of thevaluesrecord component.doubleReturns the value of theweightedScorerecord component.
-
Constructor Details
-
Alternative
-
-
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. -
portfolio
-
weightedScore
public double weightedScore()Returns the value of theweightedScorerecord component.- Returns:
- the value of the
weightedScorerecord component
-
recommended
public boolean recommended()Returns the value of therecommendedrecord component.- Returns:
- the value of the
recommendedrecord component
-
values
-
monthlyCost
Returns the value of themonthlyCostrecord component.- Returns:
- the value of the
monthlyCostrecord component
-
currency
-
gains
-
tradesAway
Returns the value of thetradesAwayrecord component.- Returns:
- the value of the
tradesAwayrecord component
-