Record Class PortfolioCost
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.spi.PortfolioCost
- Record Components:
lines- the priced itemsunpriced- what could not be priced and why (one entry per item); a non-empty list means every total understates the real cost
-
Constructor Summary
ConstructorsConstructorDescriptionPortfolioCost(List<CostLine> lines, List<String> unpriced) Makes both lists immutable and non-null. -
Method Summary
Modifier and TypeMethodDescriptioncurrency()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlines()Returns the value of thelinesrecord component.final StringtoString()Returns a string representation of this record class.unpriced()Returns the value of theunpricedrecord component.
-
Constructor Details
-
PortfolioCost
-
-
Method Details
-
currencies
-
isComplete
public boolean isComplete()- Returns:
truewhen nothing was left unpriced
-
monthlyTotal
- Returns:
- the expected monthly total, or empty when there are no lines or the lines span currencies
-
monthlyLow
- Returns:
- the low end of the monthly total, or empty as for
monthlyTotal()
-
monthlyHigh
- Returns:
- the high end of the monthly total, or empty as for
monthlyTotal()
-
oneTimeTotal
- Returns:
- the one-time total, or empty as for
monthlyTotal()
-
currency
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
lines
-
unpriced
-