Record Class TacticalAnalyzer.PlayerMovement
java.lang.Object
java.lang.Record
org.episteme.social.sports.TacticalAnalyzer.PlayerMovement
- All Implemented Interfaces:
Serializable
- Enclosing class:
TacticalAnalyzer
public static record TacticalAnalyzer.PlayerMovement(String playerId, List<TacticalAnalyzer.Position> trajectory, double timestamp)
extends Record
implements Serializable
Temporal trajectory of a player.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerMovement(String playerId, List<TacticalAnalyzer.Position> trajectory, double timestamp) Creates an instance of aPlayerMovementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.playerId()Returns the value of theplayerIdrecord component.doubleReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrajectoryrecord component.
-
Constructor Details
-
PlayerMovement
public PlayerMovement(String playerId, List<TacticalAnalyzer.Position> trajectory, double timestamp) Creates an instance of aPlayerMovementrecord class.- Parameters:
playerId- the value for theplayerIdrecord componenttrajectory- the value for thetrajectoryrecord componenttimestamp- the value for thetimestamprecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
playerId
Returns the value of theplayerIdrecord component.- Returns:
- the value of the
playerIdrecord component
-
trajectory
Returns the value of thetrajectoryrecord component.- Returns:
- the value of the
trajectoryrecord component
-
timestamp
public double timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-