Record Class ActionDescriptor
java.lang.Object
java.lang.Record
com.smeup.kokos.sdk.entity.model.descriptors.ActionDescriptor
- Record Components:
id- the Action identifierdescription- the human-readable description (e.g. "Full name")exec- the fun in a string format that will be executed when the action is triggeredicon- the icon associated with this action
public record ActionDescriptor(String id, String description, String exec, String icon)
extends Record
Describes a single Action from the
Action
annotation metadata of an entity class.
This is a pure metadata descriptor — it carries no instance data, only the structural definition of the action as declared on the entity methods.
-
Constructor Summary
ConstructorsConstructorDescriptionActionDescriptor(String id, String description, String exec, String icon) Creates an instance of aActionDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.exec()Returns the value of theexecrecord component.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionDescriptor
Creates an instance of aActionDescriptorrecord class.- Parameters:
id- the value for theidrecord componentdescription- the value for thedescriptionrecord componentexec- the value for theexecrecord componenticon- the value for theiconrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
exec
Returns the value of theexecrecord component.- Returns:
- the value of the
execrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-