Record Class TrajectoryDataSet.Series
java.lang.Object
java.lang.Record
org.episteme.social.sports.TrajectoryDataSet.Series
- All Implemented Interfaces:
Serializable
- Enclosing class:
TrajectoryDataSet
public static record TrajectoryDataSet.Series(String id, String label, TrajectoryDataSet.ColorType color, List<TrajectoryDataSet.DataPoint> points)
extends Record
implements Serializable
A labeled series of related data points.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSeries(String id, String label, TrajectoryDataSet.ColorType color, List<TrajectoryDataSet.DataPoint> points) Creates an instance of aSeriesrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.points()Returns the value of thepointsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Series
public Series(String id, String label, TrajectoryDataSet.ColorType color, List<TrajectoryDataSet.DataPoint> points) Creates an instance of aSeriesrecord class.- Parameters:
id- the value for theidrecord componentlabel- the value for thelabelrecord componentcolor- the value for thecolorrecord componentpoints- the value for thepointsrecord 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
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
points
Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-