Package dev.dokimos.server.dto.v1
Record Class TrendData
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.TrendData
public record TrendData(String experimentName, String projectName, List<TrendData.RunPoint> runs)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTrendData(String experimentName, String projectName, List<TrendData.RunPoint> runs) Creates an instance of aTrendDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperimentNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprojectNamerecord component.runs()Returns the value of therunsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TrendData
Creates an instance of aTrendDatarecord class.- Parameters:
experimentName- the value for theexperimentNamerecord componentprojectName- the value for theprojectNamerecord componentruns- the value for therunsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
experimentName
Returns the value of theexperimentNamerecord component.- Returns:
- the value of the
experimentNamerecord component
-
projectName
Returns the value of theprojectNamerecord component.- Returns:
- the value of the
projectNamerecord component
-
runs
Returns the value of therunsrecord component.- Returns:
- the value of the
runsrecord component
-