Record Class TranscriptionSpeakerProposal

java.lang.Object
java.lang.Record
org.exoplatform.documents.model.TranscriptionSpeakerProposal
Record Components:
speaker - the speaker's number in the transcript
identityId - the identity id of the person proposed
strong - whether the evidence was strong
autoApplied - whether the speaker was named after it without waiting for a person, and still is
quotes - the sentences that show it, in order
premiseSpeaker - for a proposal made by elimination, the other voice it follows from; null otherwise
premiseIdentityId - for a proposal made by elimination, the person that other voice is taken to be; null otherwise

public record TranscriptionSpeakerProposal(String speaker, long identityId, boolean strong, boolean autoApplied, List<TranscriptionQuote> quotes, String premiseSpeaker, Long premiseIdentityId) extends Record
A proposal of who a speaker of a file's transcript is, as shown to a person who can edit the file (EXO-92126): the proposal and the sentences that show it.
  • Constructor Details

    • TranscriptionSpeakerProposal

      public TranscriptionSpeakerProposal(String speaker, long identityId, boolean strong, boolean autoApplied, List<TranscriptionQuote> quotes, String premiseSpeaker, Long premiseIdentityId)
      Creates an instance of a TranscriptionSpeakerProposal record class.
      Parameters:
      speaker - the value for the speaker record component
      identityId - the value for the identityId record component
      strong - the value for the strong record component
      autoApplied - the value for the autoApplied record component
      quotes - the value for the quotes record component
      premiseSpeaker - the value for the premiseSpeaker record component
      premiseIdentityId - the value for the premiseIdentityId 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.
    • speaker

      public String speaker()
      Returns the value of the speaker record component.
      Returns:
      the value of the speaker record component
    • identityId

      public long identityId()
      Returns the value of the identityId record component.
      Returns:
      the value of the identityId record component
    • strong

      public boolean strong()
      Returns the value of the strong record component.
      Returns:
      the value of the strong record component
    • autoApplied

      public boolean autoApplied()
      Returns the value of the autoApplied record component.
      Returns:
      the value of the autoApplied record component
    • quotes

      public List<TranscriptionQuote> quotes()
      Returns the value of the quotes record component.
      Returns:
      the value of the quotes record component
    • premiseSpeaker

      public String premiseSpeaker()
      Returns the value of the premiseSpeaker record component.
      Returns:
      the value of the premiseSpeaker record component
    • premiseIdentityId

      public Long premiseIdentityId()
      Returns the value of the premiseIdentityId record component.
      Returns:
      the value of the premiseIdentityId record component