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 theidentityId
record component.private final SignalKeyPair
The field for theidentityKeyPair
record component.private final SignalKeyPair
The field for thenoiseKeyPair
record component.private final PhoneNumber
The field for thephoneNumber
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSixPartsKeys
(PhoneNumber phoneNumber, SignalKeyPair noiseKeyPair, SignalKeyPair identityKeyPair, byte[] identityId) Creates an instance of aSixPartsKeys
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.byte[]
Returns the value of theidentityId
record component.Returns the value of theidentityKeyPair
record component.Returns the value of thenoiseKeyPair
record component.static SixPartsKeys
Returns the value of thephoneNumber
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
phoneNumber
The field for thephoneNumber
record component. -
noiseKeyPair
The field for thenoiseKeyPair
record component. -
identityKeyPair
The field for theidentityKeyPair
record component. -
identityId
private final byte[] identityIdThe field for theidentityId
record component.
-
-
Constructor Details
-
SixPartsKeys
public SixPartsKeys(PhoneNumber phoneNumber, SignalKeyPair noiseKeyPair, SignalKeyPair identityKeyPair, byte[] identityId) Creates an instance of aSixPartsKeys
record class.- Parameters:
phoneNumber
- the value for thephoneNumber
record componentnoiseKeyPair
- the value for thenoiseKeyPair
record componentidentityKeyPair
- the value for theidentityKeyPair
record componentidentityId
- the value for theidentityId
record 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 thephoneNumber
record component.- Returns:
- the value of the
phoneNumber
record component
-
noiseKeyPair
Returns the value of thenoiseKeyPair
record component.- Returns:
- the value of the
noiseKeyPair
record component
-
identityKeyPair
Returns the value of theidentityKeyPair
record component.- Returns:
- the value of the
identityKeyPair
record component
-
identityId
public byte[] identityId()Returns the value of theidentityId
record component.- Returns:
- the value of the
identityId
record component
-