Record Class DeleteResource.PermissionBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.rest.client.impl.delete.DeleteResource.PermissionBean
- Enclosing class:
DeleteResource
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionBean(String entityModel, String key, boolean hasDeletePermission) Creates an instance of aPermissionBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityModelrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thehasDeletePermissionrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PermissionBean
Creates an instance of aPermissionBeanrecord class.- Parameters:
entityModel- the value for theentityModelrecord componentkey- the value for thekeyrecord componenthasDeletePermission- the value for thehasDeletePermissionrecord 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. -
entityModel
Returns the value of theentityModelrecord component.- Returns:
- the value of the
entityModelrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
hasDeletePermission
public boolean hasDeletePermission()Returns the value of thehasDeletePermissionrecord component.- Returns:
- the value of the
hasDeletePermissionrecord component
-