Record Class ApiController.BulkDeleteResponse
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.web.controller.ApiController.BulkDeleteResponse
- Enclosing class:
ApiController
public static record ApiController.BulkDeleteResponse(List<ApiController.BulkDeleteItemResult> items, int deletedCount, int blockedCount, int missingCount)
extends Record
API payload for bulk delete summary.
-
Constructor Summary
ConstructorsConstructorDescriptionBulkDeleteResponse(List<ApiController.BulkDeleteItemResult> items, int deletedCount, int blockedCount, int missingCount) Creates an instance of aBulkDeleteResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theblockedCountrecord component.intReturns the value of thedeletedCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.intReturns the value of themissingCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BulkDeleteResponse
public BulkDeleteResponse(List<ApiController.BulkDeleteItemResult> items, int deletedCount, int blockedCount, int missingCount) Creates an instance of aBulkDeleteResponserecord class.- Parameters:
items- the value for theitemsrecord componentdeletedCount- the value for thedeletedCountrecord componentblockedCount- the value for theblockedCountrecord componentmissingCount- the value for themissingCountrecord component
-
-
Method Details
-
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. -
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
deletedCount
public int deletedCount()Returns the value of thedeletedCountrecord component.- Returns:
- the value of the
deletedCountrecord component
-
blockedCount
public int blockedCount()Returns the value of theblockedCountrecord component.- Returns:
- the value of the
blockedCountrecord component
-
missingCount
public int missingCount()Returns the value of themissingCountrecord component.- Returns:
- the value of the
missingCountrecord component
-