Class TranscriptContent.Fragment

java.lang.Object
io.github.thoroldvix.api.TranscriptContent.Fragment
Enclosing class:
TranscriptContent

public static class TranscriptContent.Fragment extends Object
Represents a single fragment of the transcript content.
  • Constructor Details

    • Fragment

      public Fragment(String text, double start, double dur)
  • Method Details

    • getText

      public String getText()
      Retrieves the text of the fragment.
      Returns:
      The text of the fragment as a String.
    • getStart

      public double getStart()
      Retrieves the start time of the fragment in seconds.
      Returns:
      The start time of the fragment as a Double.
    • getDur

      public double getDur()
      Retrieves the duration of the fragment in seconds.
      Returns:
      The duration of the fragment as a Double.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object