Record Class TranscriptionSpeakerEntity
java.lang.Object
java.lang.Record
org.exoplatform.documents.rest.model.TranscriptionSpeakerEntity
- Record Components:
speaker- the speaker's number in the transcriptidentityId- the person's identity id, null for a guestusername- the person's user name, null for a guestfullName- the person's full name, or the guest's nameavatarUrl- the person's avatar, null for a guestguest- true for a guest with no account, named by a plain name
public record TranscriptionSpeakerEntity(String speaker, String identityId, String username, String fullName, String avatarUrl, boolean guest)
extends Record
A speaker of a transcript whom someone named, as the REST answers it
(EXO-92123): the person or the guest, for every reader of the file to see.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavatarUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.fullName()Returns the value of thefullNamerecord component.booleanguest()Returns the value of theguestrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theidentityIdrecord component.speaker()Returns the value of thespeakerrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
TranscriptionSpeakerEntity
public TranscriptionSpeakerEntity(String speaker, String identityId, String username, String fullName, String avatarUrl, boolean guest) Creates an instance of aTranscriptionSpeakerEntityrecord class.- Parameters:
speaker- the value for thespeakerrecord componentidentityId- the value for theidentityIdrecord componentusername- the value for theusernamerecord componentfullName- the value for thefullNamerecord componentavatarUrl- the value for theavatarUrlrecord componentguest- the value for theguestrecord component
-
-
Method Details
-
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
Returns the value of theidentityIdrecord component.- Returns:
- the value of the
identityIdrecord component
-
username
-
fullName
-
avatarUrl
-
guest
-