Record Class ReviewResponse
java.lang.Object
java.lang.Record
app.valuationcontrol.multimodule.library.records.ReviewResponse
-
Constructor Summary
ConstructorsConstructorDescriptionReviewResponse(long variableId, int score, String explanation, String suggestion) Creates an instance of aReviewResponserecord class. -
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.intscore()Returns the value of thescorerecord component.Returns the value of thesuggestionrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thevariableIdrecord component.
-
Constructor Details
-
ReviewResponse
public ReviewResponse(@JsonPropertyDescription("the id of the rated variable") long variableId, @JsonPropertyDescription("the score describing the reasonableness of the forecasted values. 1 is stable, 2 is volatile, 3 is abnormal") int score, @JsonPropertyDescription("the explanation for the score, no more than 20 words") String explanation, @JsonPropertyDescription("A suggested replacement for improving the modelling of the variable") String suggestion) Creates an instance of aReviewResponserecord class.- Parameters:
variableId- the value for thevariableIdrecord componentscore- the value for thescorerecord componentexplanation- the value for theexplanationrecord componentsuggestion- the value for thesuggestionrecord component
-
-
Method Details
-
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. -
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. -
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 '=='. -
variableId
@JsonPropertyDescription("the id of the rated variable") public long variableId()Returns the value of thevariableIdrecord component.- Returns:
- the value of the
variableIdrecord component
-
score
@JsonPropertyDescription("the score describing the reasonableness of the forecasted values. 1 is stable, 2 is volatile, 3 is abnormal") public int score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
explanation
@JsonPropertyDescription("the explanation for the score, no more than 20 words") public String explanation()Returns the value of theexplanationrecord component.- Returns:
- the value of the
explanationrecord component
-
suggestion
@JsonPropertyDescription("A suggested replacement for improving the modelling of the variable") public String suggestion()Returns the value of thesuggestionrecord component.- Returns:
- the value of the
suggestionrecord component
-