java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.DeviceIdentity
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record DeviceIdentity(int rawId, long timestamp, int keyIndex)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeviceIdentity(int rawId, long timestamp, int keyIndex) Creates an instance of aDeviceIdentityrecord class. -
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.intkeyIndex()Returns the value of thekeyIndexrecord component.intrawId()Returns the value of therawIdrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
rawId
private final int rawIdThe field for therawIdrecord component. -
timestamp
private final long timestampThe field for thetimestamprecord component. -
keyIndex
private final int keyIndexThe field for thekeyIndexrecord component.
-
-
Constructor Details
-
DeviceIdentity
public DeviceIdentity(int rawId, long timestamp, int keyIndex) Creates an instance of aDeviceIdentityrecord class.- Parameters:
rawId- the value for therawIdrecord componenttimestamp- the value for thetimestamprecord componentkeyIndex- the value for thekeyIndexrecord 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 with '=='. -
rawId
public int rawId()Returns the value of therawIdrecord component.- Returns:
- the value of the
rawIdrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
keyIndex
public int keyIndex()Returns the value of thekeyIndexrecord component.- Returns:
- the value of the
keyIndexrecord component
-