java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.AppStateSyncKeyData
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record AppStateSyncKeyData(byte[] keyData, AppStateSyncKeyFingerprint fingerprint, Long timestamp)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AppStateSyncKeyFingerprintThe field for thefingerprintrecord component.private final byte[]The field for thekeyDatarecord component.private final LongThe field for thetimestamprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAppStateSyncKeyData(byte[] keyData, AppStateSyncKeyFingerprint fingerprint, Long timestamp) Creates an instance of aAppStateSyncKeyDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefingerprintrecord component.final inthashCode()Returns a hash code value for this object.byte[]keyData()Returns the value of thekeyDatarecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
keyData
private final byte[] keyDataThe field for thekeyDatarecord component. -
fingerprint
The field for thefingerprintrecord component. -
timestamp
The field for thetimestamprecord component.
-
-
Constructor Details
-
AppStateSyncKeyData
Creates an instance of aAppStateSyncKeyDatarecord class.- Parameters:
keyData- the value for thekeyDatarecord componentfingerprint- the value for thefingerprintrecord componenttimestamp- the value for thetimestamprecord 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). -
keyData
public byte[] keyData()Returns the value of thekeyDatarecord component.- Returns:
- the value of the
keyDatarecord component
-
fingerprint
Returns the value of thefingerprintrecord component.- Returns:
- the value of the
fingerprintrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-