Record Class BulkOperation
java.lang.Object
java.lang.Record
org.alfresco.module.org_alfresco_module_rm.bulk.BulkOperation
- All Implemented Interfaces:
Serializable
public record BulkOperation(Query searchQuery, String operationType)
extends Record
implements Serializable
An immutable POJO to represent a bulk operation
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBulkOperation(Query searchQuery, String operationType) Creates an instance of aBulkOperationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theoperationTyperecord component.Returns the value of thesearchQueryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BulkOperation
Creates an instance of aBulkOperationrecord class.- Parameters:
searchQuery- the value for thesearchQueryrecord componentoperationType- the value for theoperationTyperecord 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). -
searchQuery
Returns the value of thesearchQueryrecord component.- Returns:
- the value of the
searchQueryrecord component
-
operationType
Returns the value of theoperationTyperecord component.- Returns:
- the value of the
operationTyperecord component
-