java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.session.SessionPreKey
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The field for thebaseKeyrecord component.private final IntegerThe field for thepreKeyIdrecord component.private final intThe field for thesignedKeyIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSessionPreKey(Integer preKeyId, byte[] baseKey, int signedKeyId) Creates an instance of aSessionPreKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]baseKey()Returns the value of thebaseKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.preKeyId()Returns the value of thepreKeyIdrecord component.intReturns the value of thesignedKeyIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
preKeyId
The field for thepreKeyIdrecord component. -
baseKey
private final byte[] baseKeyThe field for thebaseKeyrecord component. -
signedKeyId
private final int signedKeyIdThe field for thesignedKeyIdrecord component.
-
-
Constructor Details
-
SessionPreKey
Creates an instance of aSessionPreKeyrecord class.- Parameters:
preKeyId- the value for thepreKeyIdrecord componentbaseKey- the value for thebaseKeyrecord componentsignedKeyId- the value for thesignedKeyIdrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
preKeyId
Returns the value of thepreKeyIdrecord component.- Returns:
- the value of the
preKeyIdrecord component
-
baseKey
public byte[] baseKey()Returns the value of thebaseKeyrecord component.- Returns:
- the value of the
baseKeyrecord component
-
signedKeyId
public int signedKeyId()Returns the value of thesignedKeyIdrecord component.- Returns:
- the value of the
signedKeyIdrecord component
-