Record Class TacticalAnalyzer.Pass
java.lang.Object
java.lang.Record
org.episteme.social.sports.TacticalAnalyzer.Pass
- All Implemented Interfaces:
Serializable
- Enclosing class:
TacticalAnalyzer
public static record TacticalAnalyzer.Pass(String fromPlayer, String toPlayer, TacticalAnalyzer.Position start, TacticalAnalyzer.Position end, double timestamp, boolean successful)
extends Record
implements Serializable
Record of a ball transfer between players.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPass(String fromPlayer, String toPlayer, TacticalAnalyzer.Position start, TacticalAnalyzer.Position end, double timestamp, boolean successful) Creates an instance of aPassrecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefromPlayerrecord component.final inthashCode()Returns a hash code value for this object.start()Returns the value of thestartrecord component.booleanReturns the value of thesuccessfulrecord component.doubleReturns the value of thetimestamprecord component.toPlayer()Returns the value of thetoPlayerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Pass
public Pass(String fromPlayer, String toPlayer, TacticalAnalyzer.Position start, TacticalAnalyzer.Position end, double timestamp, boolean successful) Creates an instance of aPassrecord class.- Parameters:
fromPlayer- the value for thefromPlayerrecord componenttoPlayer- the value for thetoPlayerrecord componentstart- the value for thestartrecord componentend- the value for theendrecord componenttimestamp- the value for thetimestamprecord componentsuccessful- the value for thesuccessfulrecord 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. -
fromPlayer
Returns the value of thefromPlayerrecord component.- Returns:
- the value of the
fromPlayerrecord component
-
toPlayer
Returns the value of thetoPlayerrecord component.- Returns:
- the value of the
toPlayerrecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
timestamp
public double timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
successful
public boolean successful()Returns the value of thesuccessfulrecord component.- Returns:
- the value of the
successfulrecord component
-