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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecurrentIndexrecord component.private final intThe field for therawIdrecord component.private final longThe field for thetimestamprecord component.The field for thevalidIndexesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionKeyIndexList(int rawId, long timestamp, int currentIndex, List<Integer> validIndexes) Creates an instance of aKeyIndexListrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecurrentIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intrawId()Returns the value of therawIdrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidIndexesrecord component.
-
Field Details
-
rawId
private final int rawIdThe field for therawIdrecord component. -
timestamp
private final long timestampThe field for thetimestamprecord component. -
currentIndex
private final int currentIndexThe field for thecurrentIndexrecord component. -
validIndexes
The field for thevalidIndexesrecord component.
-
-
Constructor Details
-
KeyIndexList
Creates an instance of aKeyIndexListrecord class.- Parameters:
rawId- the value for therawIdrecord componenttimestamp- the value for thetimestamprecord componentcurrentIndex- the value for thecurrentIndexrecord componentvalidIndexes- the value for thevalidIndexesrecord 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 '=='. -
rawId
public int rawId()Returns the value of therawIdrecord component.- Returns:
- the value of the
rawIdrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
currentIndex
public int currentIndex()Returns the value of thecurrentIndexrecord component.- Returns:
- the value of the
currentIndexrecord component
-
validIndexes
Returns the value of thevalidIndexesrecord component.- Returns:
- the value of the
validIndexesrecord component
-