java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.sender.SenderKeyName
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thegroupIdrecord component.private final SessionAddressThe field for thesenderrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSenderKeyName(String groupId, SessionAddress sender) Creates an instance of aSenderKeyNamerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.groupId()Returns the value of thegroupIdrecord component.final inthashCode()Returns a hash code value for this object.static SenderKeyNamesender()Returns the value of thesenderrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
groupId
The field for thegroupIdrecord component. -
sender
The field for thesenderrecord component.
-
-
Constructor Details
-
SenderKeyName
Creates an instance of aSenderKeyNamerecord class.- Parameters:
groupId- the value for thegroupIdrecord componentsender- the value for thesenderrecord component
-
-
Method Details
-
of
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
groupId
Returns the value of thegroupIdrecord component.- Returns:
- the value of the
groupIdrecord component
-
sender
Returns the value of thesenderrecord component.- Returns:
- the value of the
senderrecord component
-