Record Class VideoAnalyzer.MotionResult
java.lang.Object
java.lang.Record
org.episteme.core.media.video.VideoAnalyzer.MotionResult
- Enclosing class:
VideoAnalyzer
public static record VideoAnalyzer.MotionResult(boolean isMotionDetected, double changeRatio)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMotionResult(boolean isMotionDetected, double changeRatio) Creates an instance of aMotionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thechangeRatiorecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisMotionDetectedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MotionResult
public MotionResult(boolean isMotionDetected, double changeRatio) Creates an instance of aMotionResultrecord class.- Parameters:
isMotionDetected- the value for theisMotionDetectedrecord componentchangeRatio- the value for thechangeRatiorecord 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. -
isMotionDetected
public boolean isMotionDetected()Returns the value of theisMotionDetectedrecord component.- Returns:
- the value of the
isMotionDetectedrecord component
-
changeRatio
public double changeRatio()Returns the value of thechangeRatiorecord component.- Returns:
- the value of the
changeRatiorecord component
-