java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.PatchRequest.PatchEntry
- Enclosing class:
PatchRequest
public static record PatchRequest.PatchEntry(ActionValueSync sync, String index, RecordSync.Operation operation)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theindexrecord component.private final RecordSync.OperationThe field for theoperationrecord component.private final ActionValueSyncThe field for thesyncrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPatchEntry(ActionValueSync sync, String index, RecordSync.Operation operation) Creates an instance of aPatchEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreateArguments(ActionValueSync sync, String... args) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.index()Returns the value of theindexrecord component.static PatchRequest.PatchEntryof(ActionValueSync sync, RecordSync.Operation operation, String... args) Returns the value of theoperationrecord component.sync()Returns the value of thesyncrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sync
The field for thesyncrecord component. -
index
The field for theindexrecord component. -
operation
The field for theoperationrecord component.
-
-
Constructor Details
-
PatchEntry
Creates an instance of aPatchEntryrecord class.- Parameters:
sync- the value for thesyncrecord componentindex- the value for theindexrecord componentoperation- the value for theoperationrecord component
-
-
Method Details
-
of
public static PatchRequest.PatchEntry of(ActionValueSync sync, RecordSync.Operation operation, String... args) -
createArguments
-
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). -
sync
Returns the value of thesyncrecord component.- Returns:
- the value of the
syncrecord component
-
index
Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-