Record Class TranscriptionSpeakerSuggestion
java.lang.Object
java.lang.Record
org.exoplatform.documents.model.TranscriptionSpeakerSuggestion
- Record Components:
speaker- the speaker's number in the transcriptidentityId- the identity id of the person proposedstrong- whether the evidence was strong enough to name the speaker without waiting for a personautoApplied- whether the speaker was named after the proposal without waiting for a personevidence- the indexes of the transcript's segments that show it, in orderpremiseSpeaker- for a proposal made by elimination (two voices, two attendees), the other voice, whose person it follows from; null otherwisepremiseIdentityId- 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 Summary
ConstructorsConstructorDescriptionTranscriptionSpeakerSuggestion(String speaker, long identityId, boolean strong, boolean autoApplied, List<Integer> evidence) A proposal shown by the names said, which follows from no other voice.TranscriptionSpeakerSuggestion(String speaker, long identityId, boolean strong, boolean autoApplied, List<Integer> evidence, String premiseSpeaker, Long premiseIdentityId) Creates an instance of aTranscriptionSpeakerSuggestionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theautoAppliedrecord component.final booleanIndicates whether some other object is "equal to" this one.evidence()Returns the value of theevidencerecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theidentityIdrecord component.Returns the value of thepremiseIdentityIdrecord component.Returns the value of thepremiseSpeakerrecord component.speaker()Returns the value of thespeakerrecord component.booleanstrong()Returns the value of thestrongrecord component.final StringtoString()Returns a string representation of this record class.withAutoApplied(boolean applied) Same proposal, applied or not.
-
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 transcriptidentityId- the identity id of the person proposedstrong- whether the evidence was strongautoApplied- whether the speaker was named after it without waiting for a personevidence- 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 aTranscriptionSpeakerSuggestionrecord class.- Parameters:
speaker- the value for thespeakerrecord componentidentityId- the value for theidentityIdrecord componentstrong- the value for thestrongrecord componentautoApplied- the value for theautoAppliedrecord componentevidence- the value for theevidencerecord componentpremiseSpeaker- the value for thepremiseSpeakerrecord componentpremiseIdentityId- the value for thepremiseIdentityIdrecord component
-
-
Method Details
-
withAutoApplied
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
-
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. -
speaker
-
identityId
public long identityId()Returns the value of theidentityIdrecord component.- Returns:
- the value of the
identityIdrecord component
-
strong
-
autoApplied
public boolean autoApplied()Returns the value of theautoAppliedrecord component.- Returns:
- the value of the
autoAppliedrecord component
-
evidence
-
premiseSpeaker
Returns the value of thepremiseSpeakerrecord component.- Returns:
- the value of the
premiseSpeakerrecord component
-
premiseIdentityId
Returns the value of thepremiseIdentityIdrecord component.- Returns:
- the value of the
premiseIdentityIdrecord component
-