Record Class DesignDecisionRecord.ObjectiveResult
java.lang.Object
java.lang.Record
com.eqixiac.equinix.design.record.DesignDecisionRecord.ObjectiveResult
- Record Components:
id- the objective idunit- the unit ofvaluevalue- the measured value;nullwhen unknownscore- the 0..100 score;nullwhen unknownweight- the objective's share of the total weight, 0..1scale- how the value was turned into the scoreexplanation- how the value was reached, or why it is unknown
- Enclosing class:
DesignDecisionRecord
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplanationrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.scale()Returns the value of thescalerecord component.score()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.value()Returns the value of thevaluerecord component.weight()Returns the value of theweightrecord component.
-
Constructor Details
-
ObjectiveResult
public ObjectiveResult(String id, String unit, Double value, Double score, Double weight, String scale, String explanation) Creates an instance of aObjectiveResultrecord class.- Parameters:
id- the value for theidrecord componentunit- the value for theunitrecord componentvalue- the value for thevaluerecord componentscore- the value for thescorerecord componentweight- the value for theweightrecord componentscale- the value for thescalerecord componentexplanation- the value for theexplanationrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
-
unit
-
value
-
score
-
weight
-
scale
-
explanation
Returns the value of theexplanationrecord component.- Returns:
- the value of the
explanationrecord component
-