Record Class DeleteResource.PermissionBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.client.impl.delete.DeleteResource.PermissionBean
- Enclosing class:
DeleteResource
-
Constructor Summary
ConstructorDescriptionPermissionBean
(String entityModel, String key, boolean hasDeletePermission) Creates an instance of aPermissionBean
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityModel
record component.final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thehasDeletePermission
record component.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PermissionBean
Creates an instance of aPermissionBean
record class.- Parameters:
entityModel
- the value for theentityModel
record componentkey
- the value for thekey
record componenthasDeletePermission
- the value for thehasDeletePermission
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
entityModel
Returns the value of theentityModel
record component.- Returns:
- the value of the
entityModel
record component
-
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
hasDeletePermission
public boolean hasDeletePermission()Returns the value of thehasDeletePermission
record component.- Returns:
- the value of the
hasDeletePermission
record component
-