Record Class ExportService.SendResult
java.lang.Object
java.lang.Record
org.bgerp.plugin.inventory.sync1c.service.ExportService.SendResult
- Enclosing class:
ExportService
Result of a single
ExportService.sendExportQueue(ExportQueue) attempt — carries the item count alongside
the error so callers can log it (see inventory_sync1c_export_log) without a second
ExportService.buildWriteoffItems(int, Sync1cConnector) lookup.-
Constructor Summary
ConstructorsConstructorDescriptionSendResult(String error, int itemsCount) Creates an instance of aSendResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.booleanintReturns the value of theitemsCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SendResult
Creates an instance of aSendResultrecord class.- Parameters:
error- the value for theerrorrecord componentitemsCount- the value for theitemsCountrecord component
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
itemsCount
public int itemsCount()Returns the value of theitemsCountrecord component.- Returns:
- the value of the
itemsCountrecord component
-