Record Class TranscriptionSpeakerSuggestion

java.lang.Object
java.lang.Record
org.exoplatform.documents.model.TranscriptionSpeakerSuggestion
Record Components:
speaker - the speaker's number in the transcript
identityId - the identity id of the person proposed
strong - whether the evidence was strong enough to name the speaker without waiting for a person
autoApplied - whether the speaker was named after the proposal without waiting for a person
evidence - the indexes of the transcript's segments that show it, in order
premiseSpeaker - for a proposal made by elimination (two voices, two attendees), the other voice, whose person it follows from; null otherwise
premiseIdentityId - the person that other voice is taken to be, kept to explain the proposal: one made by elimination is never applied, only suggested; null otherwise

public record TranscriptionSpeakerSuggestion(String speaker, long identityId, boolean strong, boolean autoApplied, List<Integer> evidence, String premiseSpeaker, Long premiseIdentityId) extends Record
Who a speaker of a file's transcript probably is, as the platform proposed it after the transcription (EXO-92126). A proposal is not a name: it is shown to the people who can edit the file until one of them confirms or dismisses it, or, when it was applied without waiting, as the reason the speaker is named.
  • Constructor Details

    • TranscriptionSpeakerSuggestion

      public TranscriptionSpeakerSuggestion(String speaker, long identityId, boolean strong, boolean autoApplied, List<Integer> evidence)
      A proposal shown by the names said, which follows from no other voice.
      Parameters:
      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
      evidence - the indexes of the transcript's segments that show it
    • TranscriptionSpeakerSuggestion

      public TranscriptionSpeakerSuggestion(String speaker, long identityId, boolean strong, boolean autoApplied, List<Integer> evidence, String premiseSpeaker, Long premiseIdentityId)
      Creates an instance of a TranscriptionSpeakerSuggestion 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
      evidence - the value for the evidence record component
      premiseSpeaker - the value for the premiseSpeaker record component
      premiseIdentityId - the value for the premiseIdentityId record component
  • Method Details

    • withAutoApplied

      public TranscriptionSpeakerSuggestion withAutoApplied(boolean applied)
      Same proposal, applied or not.
      Parameters:
      applied - whether the speaker was named after it without waiting for a person
      Returns:
      the proposal with that flag
    • 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
    • evidence

      public List<Integer> evidence()
      Returns the value of the evidence record component.
      Returns:
      the value of the evidence 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