Record Class UiVideoRecorder.Result

java.lang.Object
java.lang.Record
com.render.testkit.UiVideoRecorder.Result
Enclosing class:
UiVideoRecorder

public static record UiVideoRecorder.Result(boolean success, String error, String manifest, String video, String framesDirectory, int frameCount, int width, int height, int viewportWidth, int viewportHeight, int fps, double durationSeconds, List<UiVideoRecorder.Frame> frames, String codec, long pngBytes) extends Record
Final report; success requires verified MP4 dimensions, cadence, count, duration, and a written manifest.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Result(boolean success, String error, String manifest, String video, String framesDirectory, int frameCount, int width, int height, int viewportWidth, int viewportHeight, int fps, double durationSeconds, List<UiVideoRecorder.Frame> frames, String codec, long pngBytes)
    Creates an instance of a Result record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the codec record component.
    double
    Returns the value of the durationSeconds record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the error record component.
    int
    fps()
    Returns the value of the fps record component.
    int
    Returns the value of the frameCount record component.
    Returns the value of the frames record component.
    Returns the value of the framesDirectory record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the height record component.
    Returns the value of the manifest record component.
    long
    Returns the value of the pngBytes record component.
    boolean
    Returns the value of the success record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the video record component.
    int
    Returns the value of the viewportHeight record component.
    int
    Returns the value of the viewportWidth record component.
    int
    Returns the value of the width record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Result

      public Result(boolean success, String error, String manifest, String video, String framesDirectory, int frameCount, int width, int height, int viewportWidth, int viewportHeight, int fps, double durationSeconds, List<UiVideoRecorder.Frame> frames, String codec, long pngBytes)
      Creates an instance of a Result record class.
      Parameters:
      success - the value for the success record component
      error - the value for the error record component
      manifest - the value for the manifest record component
      video - the value for the video record component
      framesDirectory - the value for the framesDirectory record component
      frameCount - the value for the frameCount record component
      width - the value for the width record component
      height - the value for the height record component
      viewportWidth - the value for the viewportWidth record component
      viewportHeight - the value for the viewportHeight record component
      fps - the value for the fps record component
      durationSeconds - the value for the durationSeconds record component
      frames - the value for the frames record component
      codec - the value for the codec record component
      pngBytes - the value for the pngBytes 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.
    • success

      public boolean success()
      Returns the value of the success record component.
      Returns:
      the value of the success record component
    • error

      public String error()
      Returns the value of the error record component.
      Returns:
      the value of the error record component
    • manifest

      public String manifest()
      Returns the value of the manifest record component.
      Returns:
      the value of the manifest record component
    • video

      public String video()
      Returns the value of the video record component.
      Returns:
      the value of the video record component
    • framesDirectory

      public String framesDirectory()
      Returns the value of the framesDirectory record component.
      Returns:
      the value of the framesDirectory record component
    • frameCount

      public int frameCount()
      Returns the value of the frameCount record component.
      Returns:
      the value of the frameCount record component
    • width

      public int width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public int height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • viewportWidth

      public int viewportWidth()
      Returns the value of the viewportWidth record component.
      Returns:
      the value of the viewportWidth record component
    • viewportHeight

      public int viewportHeight()
      Returns the value of the viewportHeight record component.
      Returns:
      the value of the viewportHeight record component
    • fps

      public int fps()
      Returns the value of the fps record component.
      Returns:
      the value of the fps record component
    • durationSeconds

      public double durationSeconds()
      Returns the value of the durationSeconds record component.
      Returns:
      the value of the durationSeconds record component
    • frames

      public List<UiVideoRecorder.Frame> frames()
      Returns the value of the frames record component.
      Returns:
      the value of the frames record component
    • codec

      public String codec()
      Returns the value of the codec record component.
      Returns:
      the value of the codec record component
    • pngBytes

      public long pngBytes()
      Returns the value of the pngBytes record component.
      Returns:
      the value of the pngBytes record component