java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.AppStateSyncKey
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
public record AppStateSyncKey(AppStateSyncKeyId keyId, AppStateSyncKeyData keyData)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AppStateSyncKeyData
The field for thekeyData
record component.private final AppStateSyncKeyId
The field for thekeyId
record component. -
Constructor Summary
ConstructorsConstructorDescriptionAppStateSyncKey
(AppStateSyncKeyId keyId, AppStateSyncKeyData keyData) Creates an instance of aAppStateSyncKey
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.keyData()
Returns the value of thekeyData
record component.keyId()
Returns the value of thekeyId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
keyId
The field for thekeyId
record component. -
keyData
The field for thekeyData
record component.
-
-
Constructor Details
-
AppStateSyncKey
Creates an instance of aAppStateSyncKey
record class.- Parameters:
keyId
- the value for thekeyId
record componentkeyData
- the value for thekeyData
record component
-
-
Method Details
-
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)
. -
keyId
Returns the value of thekeyId
record component.- Returns:
- the value of the
keyId
record component
-
keyData
Returns the value of thekeyData
record component.- Returns:
- the value of the
keyData
record component
-