Record Class DesignDecisionRecord.Savings

java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.Savings
Record Components:
monthlyEgressGb - the egress volume compared
netMonthlySavings - the net monthly saving, or null when not priced
annualNetSavings - the annual net saving, or null
paybackMonths - months to recover one-time costs, or null
currency - the currency of the amounts
complete - whether every component was priced
unpriced - what could not be priced
Enclosing class:
DesignDecisionRecord

public static record DesignDecisionRecord.Savings(BigDecimal monthlyEgressGb, BigDecimal netMonthlySavings, BigDecimal annualNetSavings, BigDecimal paybackMonths, String currency, boolean complete, List<String> unpriced) extends Record
Egress savings of the private path.
  • 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.
    • monthlyEgressGb

      public BigDecimal monthlyEgressGb()
      Returns the value of the monthlyEgressGb record component.
      Returns:
      the value of the monthlyEgressGb record component
    • netMonthlySavings

      public BigDecimal netMonthlySavings()
      Returns the value of the netMonthlySavings record component.
      Returns:
      the value of the netMonthlySavings record component
    • annualNetSavings

      public BigDecimal annualNetSavings()
      Returns the value of the annualNetSavings record component.
      Returns:
      the value of the annualNetSavings record component
    • paybackMonths

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

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

      public boolean complete()
      Returns the value of the complete record component.
      Returns:
      the value of the complete record component
    • unpriced

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