Record Class DeleteRegistryRequest
java.lang.Object
java.lang.Record
net.croz.nrich.registry.data.request.DeleteRegistryRequest
- Record Components:
classFullName- Class name of registry entity.id- Registry entity id.
public record DeleteRegistryRequest(@NotNull String classFullName, @NotNull Object id)
extends Record
Request holding data for registry entity deletion.
-
Constructor Summary
ConstructorsConstructorDescriptionDeleteRegistryRequest(@NotNull String classFullName, @NotNull Object id) Creates an instance of aDeleteRegistryRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringReturns the value of theclassFullNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Objectid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeleteRegistryRequest
Creates an instance of aDeleteRegistryRequestrecord class.- Parameters:
classFullName- the value for theclassFullNamerecord componentid- the value for theidrecord 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). -
classFullName
Returns the value of theclassFullNamerecord component.- Returns:
- the value of the
classFullNamerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-