Record Class RecordedSession
java.lang.Object
java.lang.Record
uno.anahata.asi.yam.tools.screenrecording.RecordedSession
- Record Components:
videoPath- The absolute path to the recorded .mp4 file.thumbnailPath- The absolute path to the captured .png thumbnail frame.durationSeconds- The elapsed recording duration in seconds.
public record RecordedSession(Path videoPath, Path thumbnailPath, double durationSeconds)
extends Record
Encapsulates the artifacts produced during an automated screen recording session.
Binds the finalized MP4 video file path, captured thumbnail screenshot path, and the elapsed recording duration in seconds.
- Author:
- anahata
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thedurationSecondsrecord component.private final PathThe field for thethumbnailPathrecord component.private final PathThe field for thevideoPathrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRecordedSession(Path videoPath, Path thumbnailPath, double durationSeconds) Creates an instance of aRecordedSessionrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thedurationSecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thethumbnailPathrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevideoPathrecord component.
-
Field Details
-
videoPath
-
thumbnailPath
The field for thethumbnailPathrecord component. -
durationSeconds
private final double durationSecondsThe field for thedurationSecondsrecord component.
-
-
Constructor Details
-
RecordedSession
Creates an instance of aRecordedSessionrecord class.- Parameters:
videoPath- the value for thevideoPathrecord componentthumbnailPath- the value for thethumbnailPathrecord componentdurationSeconds- the value for thedurationSecondsrecord 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. -
videoPath
-
thumbnailPath
Returns the value of thethumbnailPathrecord component.- Returns:
- the value of the
thumbnailPathrecord component
-
durationSeconds
public double durationSeconds()Returns the value of thedurationSecondsrecord component.- Returns:
- the value of the
durationSecondsrecord component
-

