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 Details

    • Pass

      public Pass(String fromPlayer, String toPlayer, TacticalAnalyzer.Position start, TacticalAnalyzer.Position end, double timestamp, boolean successful)
      Creates an instance of a Pass record class.
      Parameters:
      fromPlayer - the value for the fromPlayer record component
      toPlayer - the value for the toPlayer record component
      start - the value for the start record component
      end - the value for the end record component
      timestamp - the value for the timestamp record component
      successful - the value for the successful record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • fromPlayer

      public String fromPlayer()
      Returns the value of the fromPlayer record component.
      Returns:
      the value of the fromPlayer record component
    • toPlayer

      public String toPlayer()
      Returns the value of the toPlayer record component.
      Returns:
      the value of the toPlayer record component
    • start

      public TacticalAnalyzer.Position start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • end

      Returns the value of the end record component.
      Returns:
      the value of the end record component
    • timestamp

      public double timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • successful

      public boolean successful()
      Returns the value of the successful record component.
      Returns:
      the value of the successful record component