Record Class DecisionDelta
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DecisionDelta
- Record Components:
beforeGeneratedAt- when the earlier record was producedafterGeneratedAt- when the later record was producedspecChanged- whether the specs' fingerprints differspecChanges- one line per changed spec property (path: before -> after)recommendationChanged- whether the recommended portfolio differsrecommendationBefore- the earlier recommended portfolio, ornullwhen it had nonerecommendationAfter- the later recommended portfolio, ornullwhen it has noneobjectiveChanges- one line per objective whose value changedcostBefore- the earlier monthly total, ornullcostAfter- the later monthly total, ornullcostCurrencyBefore- the earlier total's currency, ornullcostCurrencyAfter- the later total's currency, ornullcostChange- the later total minus the earlier one, ornullwhen not comparablecostLineChanges- one line per cost line added, removed or repriced (matched by label)resilienceChanges- one line per changed resilience verdict, single point of failure or availabilityrisksAdded- findings in the later record onlyrisksRemoved- findings in the earlier record onlysectionChanges- one line per section whose status changed
public record DecisionDelta(Instant beforeGeneratedAt, Instant afterGeneratedAt, boolean specChanged, List<String> specChanges, boolean recommendationChanged, String recommendationBefore, String recommendationAfter, List<String> objectiveChanges, BigDecimal costBefore, BigDecimal costAfter, String costCurrencyBefore, String costCurrencyAfter, BigDecimal costChange, List<String> costLineChanges, List<String> resilienceChanges, List<String> risksAdded, List<String> risksRemoved, List<String> sectionChanges)
extends Record
What changed between two
DesignDecisionRecords, for example the same design re-run a quarter later:
the spec, the recommendation and its objective values, the cost, the resilience verdicts and the findings.
Produced by DesignDecisionRecord.compare(DesignDecisionRecord, DesignDecisionRecord); Jackson-serializable; toMarkdown() for a reader.-
Constructor Summary
ConstructorsConstructorDescriptionDecisionDelta(Instant beforeGeneratedAt, Instant afterGeneratedAt, boolean specChanged, List<String> specChanges, boolean recommendationChanged, String recommendationBefore, String recommendationAfter, List<String> objectiveChanges, BigDecimal costBefore, BigDecimal costAfter, String costCurrencyBefore, String costCurrencyAfter, BigDecimal costChange, List<String> costLineChanges, List<String> resilienceChanges, List<String> risksAdded, List<String> risksRemoved, List<String> sectionChanges) Copies the lists. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theafterGeneratedAtrecord component.Returns the value of thebeforeGeneratedAtrecord component.Returns the value of thecostAfterrecord component.Returns the value of thecostBeforerecord component.Returns the value of thecostChangerecord component.Returns the value of thecostCurrencyAfterrecord component.Returns the value of thecostCurrencyBeforerecord component.Returns the value of thecostLineChangesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()Returns the value of theobjectiveChangesrecord component.Returns the value of therecommendationAfterrecord component.Returns the value of therecommendationBeforerecord component.booleanReturns the value of therecommendationChangedrecord component.Returns the value of theresilienceChangesrecord component.Returns the value of therisksAddedrecord component.Returns the value of therisksRemovedrecord component.Returns the value of thesectionChangesrecord component.booleanReturns the value of thespecChangedrecord component.Returns the value of thespecChangesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DecisionDelta
public DecisionDelta(Instant beforeGeneratedAt, Instant afterGeneratedAt, boolean specChanged, List<String> specChanges, boolean recommendationChanged, String recommendationBefore, String recommendationAfter, List<String> objectiveChanges, BigDecimal costBefore, BigDecimal costAfter, String costCurrencyBefore, String costCurrencyAfter, BigDecimal costChange, List<String> costLineChanges, List<String> resilienceChanges, List<String> risksAdded, List<String> risksRemoved, List<String> sectionChanges) Copies the lists.
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Returns:
truewhen nothing the delta tracks changed
-
toMarkdown
- Returns:
- the delta as Markdown
-
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. -
beforeGeneratedAt
Returns the value of thebeforeGeneratedAtrecord component.- Returns:
- the value of the
beforeGeneratedAtrecord component
-
afterGeneratedAt
Returns the value of theafterGeneratedAtrecord component.- Returns:
- the value of the
afterGeneratedAtrecord component
-
specChanged
public boolean specChanged()Returns the value of thespecChangedrecord component.- Returns:
- the value of the
specChangedrecord component
-
specChanges
Returns the value of thespecChangesrecord component.- Returns:
- the value of the
specChangesrecord component
-
recommendationChanged
public boolean recommendationChanged()Returns the value of therecommendationChangedrecord component.- Returns:
- the value of the
recommendationChangedrecord component
-
recommendationBefore
Returns the value of therecommendationBeforerecord component.- Returns:
- the value of the
recommendationBeforerecord component
-
recommendationAfter
Returns the value of therecommendationAfterrecord component.- Returns:
- the value of the
recommendationAfterrecord component
-
objectiveChanges
Returns the value of theobjectiveChangesrecord component.- Returns:
- the value of the
objectiveChangesrecord component
-
costBefore
Returns the value of thecostBeforerecord component.- Returns:
- the value of the
costBeforerecord component
-
costAfter
-
costCurrencyBefore
Returns the value of thecostCurrencyBeforerecord component.- Returns:
- the value of the
costCurrencyBeforerecord component
-
costCurrencyAfter
Returns the value of thecostCurrencyAfterrecord component.- Returns:
- the value of the
costCurrencyAfterrecord component
-
costChange
Returns the value of thecostChangerecord component.- Returns:
- the value of the
costChangerecord component
-
costLineChanges
Returns the value of thecostLineChangesrecord component.- Returns:
- the value of the
costLineChangesrecord component
-
resilienceChanges
Returns the value of theresilienceChangesrecord component.- Returns:
- the value of the
resilienceChangesrecord component
-
risksAdded
Returns the value of therisksAddedrecord component.- Returns:
- the value of the
risksAddedrecord component
-
risksRemoved
Returns the value of therisksRemovedrecord component.- Returns:
- the value of the
risksRemovedrecord component
-
sectionChanges
Returns the value of thesectionChangesrecord component.- Returns:
- the value of the
sectionChangesrecord component
-