Record Class KeyIndexList

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

public record KeyIndexList(int rawId, long timestamp, int currentIndex, List<Integer> validIndexes) extends Record implements it.auties.protobuf.model.ProtobufMessage
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The field for the currentIndex record component.
    private final int
    The field for the rawId record component.
    private final long
    The field for the timestamp record component.
    private final List<Integer>
    The field for the validIndexes record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    KeyIndexList(int rawId, long timestamp, int currentIndex, List<Integer> validIndexes)
    Creates an instance of a KeyIndexList record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the currentIndex record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the rawId record component.
    long
    Returns the value of the timestamp record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the validIndexes record component.

    Methods inherited from class java.lang.Object

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

    • rawId

      private final int rawId
      The field for the rawId record component.
    • timestamp

      private final long timestamp
      The field for the timestamp record component.
    • currentIndex

      private final int currentIndex
      The field for the currentIndex record component.
    • validIndexes

      private final List<Integer> validIndexes
      The field for the validIndexes record component.
  • Constructor Details

    • KeyIndexList

      public KeyIndexList(int rawId, long timestamp, int currentIndex, List<Integer> validIndexes)
      Creates an instance of a KeyIndexList record class.
      Parameters:
      rawId - the value for the rawId record component
      timestamp - the value for the timestamp record component
      currentIndex - the value for the currentIndex record component
      validIndexes - the value for the validIndexes 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.
    • rawId

      public int rawId()
      Returns the value of the rawId record component.
      Returns:
      the value of the rawId record component
    • timestamp

      public long timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component
    • currentIndex

      public int currentIndex()
      Returns the value of the currentIndex record component.
      Returns:
      the value of the currentIndex record component
    • validIndexes

      public List<Integer> validIndexes()
      Returns the value of the validIndexes record component.
      Returns:
      the value of the validIndexes record component