java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.DeviceListMetadata
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for therecipientKeyHashrecord component.The field for therecipientKeyIndexesrecord component.private final LongThe field for therecipientTimestamprecord component.private final byte[]The field for thesenderKeyHashrecord component.The field for thesenderKeyIndexesrecord component.private final LongThe field for thesenderTimestamprecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]Returns the value of therecipientKeyHashrecord component.Returns the value of therecipientKeyIndexesrecord component.Returns the value of therecipientTimestamprecord component.byte[]Returns the value of thesenderKeyHashrecord component.Returns the value of thesenderKeyIndexesrecord component.Returns the value of thesenderTimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
senderKeyHash
private final byte[] senderKeyHashThe field for thesenderKeyHashrecord component. -
senderTimestamp
The field for thesenderTimestamprecord component. -
senderKeyIndexes
The field for thesenderKeyIndexesrecord component. -
recipientKeyHash
private final byte[] recipientKeyHashThe field for therecipientKeyHashrecord component. -
recipientTimestamp
The field for therecipientTimestamprecord component. -
recipientKeyIndexes
The field for therecipientKeyIndexesrecord component.
-
-
Constructor Details
-
DeviceListMetadata
public DeviceListMetadata(byte[] senderKeyHash, Long senderTimestamp, List<Integer> senderKeyIndexes, byte[] recipientKeyHash, Long recipientTimestamp, List<Integer> recipientKeyIndexes) Creates an instance of aDeviceListMetadatarecord class.- Parameters:
senderKeyHash- the value for thesenderKeyHashrecord componentsenderTimestamp- the value for thesenderTimestamprecord componentsenderKeyIndexes- the value for thesenderKeyIndexesrecord componentrecipientKeyHash- the value for therecipientKeyHashrecord componentrecipientTimestamp- the value for therecipientTimestamprecord componentrecipientKeyIndexes- the value for therecipientKeyIndexesrecord 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). -
senderKeyHash
public byte[] senderKeyHash()Returns the value of thesenderKeyHashrecord component.- Returns:
- the value of the
senderKeyHashrecord component
-
senderTimestamp
Returns the value of thesenderTimestamprecord component.- Returns:
- the value of the
senderTimestamprecord component
-
senderKeyIndexes
Returns the value of thesenderKeyIndexesrecord component.- Returns:
- the value of the
senderKeyIndexesrecord component
-
recipientKeyHash
public byte[] recipientKeyHash()Returns the value of therecipientKeyHashrecord component.- Returns:
- the value of the
recipientKeyHashrecord component
-
recipientTimestamp
Returns the value of therecipientTimestamprecord component.- Returns:
- the value of the
recipientTimestamprecord component
-
recipientKeyIndexes
Returns the value of therecipientKeyIndexesrecord component.- Returns:
- the value of the
recipientKeyIndexesrecord component
-