Record Class SessionPreKey

java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.session.SessionPreKey
All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage, it.auties.protobuf.model.ProtobufObject

public record SessionPreKey(Integer preKeyId, byte[] baseKey, int signedKeyId) extends Record implements it.auties.protobuf.model.ProtobufMessage
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final byte[]
    The field for the baseKey record component.
    private final Integer
    The field for the preKeyId record component.
    private final int
    The field for the signedKeyId record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionPreKey(Integer preKeyId, byte[] baseKey, int signedKeyId)
    Creates an instance of a SessionPreKey record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Returns the value of the baseKey record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the preKeyId record component.
    int
    Returns the value of the signedKeyId record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • preKeyId

      private final Integer preKeyId
      The field for the preKeyId record component.
    • baseKey

      private final byte[] baseKey
      The field for the baseKey record component.
    • signedKeyId

      private final int signedKeyId
      The field for the signedKeyId record component.
  • Constructor Details

    • SessionPreKey

      public SessionPreKey(Integer preKeyId, byte[] baseKey, int signedKeyId)
      Creates an instance of a SessionPreKey record class.
      Parameters:
      preKeyId - the value for the preKeyId record component
      baseKey - the value for the baseKey record component
      signedKeyId - the value for the signedKeyId record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • preKeyId

      public Integer preKeyId()
      Returns the value of the preKeyId record component.
      Returns:
      the value of the preKeyId record component
    • baseKey

      public byte[] baseKey()
      Returns the value of the baseKey record component.
      Returns:
      the value of the baseKey record component
    • signedKeyId

      public int signedKeyId()
      Returns the value of the signedKeyId record component.
      Returns:
      the value of the signedKeyId record component