java.lang.Object
java.lang.Record
it.auties.whatsapp.model.mobile.SixPartsKeys
public record SixPartsKeys(PhoneNumber phoneNumber, SignalKeyPair noiseKeyPair, SignalKeyPair identityKeyPair, byte[] identityId)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for theidentityIdrecord component.private final SignalKeyPairThe field for theidentityKeyPairrecord component.private final SignalKeyPairThe field for thenoiseKeyPairrecord component.private final PhoneNumberThe field for thephoneNumberrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSixPartsKeys(PhoneNumber phoneNumber, SignalKeyPair noiseKeyPair, SignalKeyPair identityKeyPair, byte[] identityId) Creates an instance of aSixPartsKeysrecord 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.byte[]Returns the value of theidentityIdrecord component.Returns the value of theidentityKeyPairrecord component.Returns the value of thenoiseKeyPairrecord component.static SixPartsKeysReturns the value of thephoneNumberrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
phoneNumber
The field for thephoneNumberrecord component. -
noiseKeyPair
The field for thenoiseKeyPairrecord component. -
identityKeyPair
The field for theidentityKeyPairrecord component. -
identityId
private final byte[] identityIdThe field for theidentityIdrecord component.
-
-
Constructor Details
-
SixPartsKeys
public SixPartsKeys(PhoneNumber phoneNumber, SignalKeyPair noiseKeyPair, SignalKeyPair identityKeyPair, byte[] identityId) Creates an instance of aSixPartsKeysrecord class.- Parameters:
phoneNumber- the value for thephoneNumberrecord componentnoiseKeyPair- the value for thenoiseKeyPairrecord componentidentityKeyPair- the value for theidentityKeyPairrecord componentidentityId- the value for theidentityIdrecord 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). -
phoneNumber
Returns the value of thephoneNumberrecord component.- Returns:
- the value of the
phoneNumberrecord component
-
noiseKeyPair
Returns the value of thenoiseKeyPairrecord component.- Returns:
- the value of the
noiseKeyPairrecord component
-
identityKeyPair
Returns the value of theidentityKeyPairrecord component.- Returns:
- the value of the
identityKeyPairrecord component
-
identityId
public byte[] identityId()Returns the value of theidentityIdrecord component.- Returns:
- the value of the
identityIdrecord component
-