java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.sender.SenderKeyName
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for thegroupId
record component.private final SessionAddress
The field for thesender
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSenderKeyName
(String groupId, SessionAddress sender) Creates an instance of aSenderKeyName
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.groupId()
Returns the value of thegroupId
record component.final int
hashCode()
Returns a hash code value for this object.static SenderKeyName
sender()
Returns the value of thesender
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
groupId
The field for thegroupId
record component. -
sender
The field for thesender
record component.
-
-
Constructor Details
-
SenderKeyName
Creates an instance of aSenderKeyName
record class.- Parameters:
groupId
- the value for thegroupId
record componentsender
- the value for thesender
record 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 thegroupId
record component.- Returns:
- the value of the
groupId
record component
-
sender
Returns the value of thesender
record component.- Returns:
- the value of the
sender
record component
-