Module it.auties.whatsapp4j
Package it.auties.whatsapp.socket
Record Class AppStateHandler.PushRequest
java.lang.Object
java.lang.Record
it.auties.whatsapp.socket.AppStateHandler.PushRequest
- Enclosing class:
- AppStateHandler
private static record AppStateHandler.PushRequest(PatchRequest patch, LTHashState oldState, LTHashState newState, PatchSync sync)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LTHashState
The field for thenewState
record component.private final LTHashState
The field for theoldState
record component.private final PatchRequest
The field for thepatch
record component.private final PatchSync
The field for thesync
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PushRequest
(PatchRequest patch, LTHashState oldState, LTHashState newState, PatchSync sync) Creates an instance of aPushRequest
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.newState()
Returns the value of thenewState
record component.oldState()
Returns the value of theoldState
record component.patch()
Returns the value of thepatch
record component.sync()
Returns the value of thesync
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
patch
The field for thepatch
record component. -
oldState
The field for theoldState
record component. -
newState
The field for thenewState
record component. -
sync
The field for thesync
record component.
-
-
Constructor Details
-
PushRequest
Creates an instance of aPushRequest
record class.- Parameters:
patch
- the value for thepatch
record componentoldState
- the value for theoldState
record componentnewState
- the value for thenewState
record componentsync
- the value for thesync
record 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. All components in this record class are compared withObjects::equals(Object,Object)
. -
patch
Returns the value of thepatch
record component.- Returns:
- the value of the
patch
record component
-
oldState
Returns the value of theoldState
record component.- Returns:
- the value of the
oldState
record component
-
newState
Returns the value of thenewState
record component.- Returns:
- the value of the
newState
record component
-
sync
Returns the value of thesync
record component.- Returns:
- the value of the
sync
record component
-