Record Class VideoAnalysisMetrics.Shot
java.lang.Object
java.lang.Record
org.episteme.social.sports.VideoAnalysisMetrics.Shot
- All Implemented Interfaces:
Serializable
- Enclosing class:
VideoAnalysisMetrics
public static record VideoAnalysisMetrics.Shot(double x, double y, double distance, boolean isHeader)
extends Record
implements Serializable
Detailed data for a specific scoring attempt.
- Since:
- 1.0
- Version:
- 1.1
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionShot(double x, double y, double distance, boolean isHeader) Creates an instance of aShotrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubledistance()Returns the value of thedistancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisHeader()Returns the value of theisHeaderrecord component.final StringtoString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.
-
Constructor Details
-
Shot
public Shot(double x, double y, double distance, boolean isHeader) Creates an instance of aShotrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentdistance- the value for thedistancerecord componentisHeader- the value for theisHeaderrecord 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 with thecomparemethod from their corresponding wrapper classes. -
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
distance
public double distance()Returns the value of thedistancerecord component.- Returns:
- the value of the
distancerecord component
-
isHeader
public boolean isHeader()Returns the value of theisHeaderrecord component.- Returns:
- the value of the
isHeaderrecord component
-