Record Class DesignDecisionRecord.Alternative

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Alternative
Record Components:
portfolio - the portfolio key
weightedScore - the weighted score, 0..100
recommended - whether it is the recommendation
values - each known objective value, by objective id
monthlyCost - the expected monthly total, or null when it has none in one currency
currency - the currency of monthlyCost, or null
gains - where it is better than the recommendation, one phrase per objective
tradesAway - where it is worse than the recommendation, one phrase per objective
Enclosing class:
DesignDecisionRecord

public static record DesignDecisionRecord.Alternative(String portfolio, double weightedScore, boolean recommended, Map<String,Double> values, BigDecimal monthlyCost, String currency, List<String> gains, List<String> tradesAway) extends Record
One option on the frontier.
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • portfolio

      public String portfolio()
      Returns the value of the portfolio record component.
      Returns:
      the value of the portfolio record component
    • weightedScore

      public double weightedScore()
      Returns the value of the weightedScore record component.
      Returns:
      the value of the weightedScore record component
    • recommended

      public boolean recommended()
      Returns the value of the recommended record component.
      Returns:
      the value of the recommended record component
    • values

      public Map<String,Double> values()
      Returns the value of the values record component.
      Returns:
      the value of the values record component
    • monthlyCost

      public BigDecimal monthlyCost()
      Returns the value of the monthlyCost record component.
      Returns:
      the value of the monthlyCost record component
    • currency

      public String currency()
      Returns the value of the currency record component.
      Returns:
      the value of the currency record component
    • gains

      public List<String> gains()
      Returns the value of the gains record component.
      Returns:
      the value of the gains record component
    • tradesAway

      public List<String> tradesAway()
      Returns the value of the tradesAway record component.
      Returns:
      the value of the tradesAway record component