Record Class ApiController.BulkDeleteItemResult
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.web.controller.ApiController.BulkDeleteItemResult
- Enclosing class:
ApiController
public static record ApiController.BulkDeleteItemResult(String experimentId, boolean deleted, String reason)
extends Record
API payload for one bulk delete item.
-
Constructor Summary
ConstructorsConstructorDescriptionBulkDeleteItemResult(String experimentId, boolean deleted, String reason) Creates an instance of aBulkDeleteItemResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandeleted()Returns the value of thedeletedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperimentIdrecord component.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BulkDeleteItemResult
Creates an instance of aBulkDeleteItemResultrecord class.- Parameters:
experimentId- the value for theexperimentIdrecord componentdeleted- the value for thedeletedrecord componentreason- the value for thereasonrecord 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. -
experimentId
Returns the value of theexperimentIdrecord component.- Returns:
- the value of the
experimentIdrecord component
-
deleted
public boolean deleted()Returns the value of thedeletedrecord component.- Returns:
- the value of the
deletedrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-