Package org.daiitech.naftah.builtin.lang
Record Class NaftahFunctionProvider
java.lang.Object
java.lang.Record
org.daiitech.naftah.builtin.lang.NaftahFunctionProvider
- Record Components:
name- the provider's nameuseQualifiedName- flags that the function names should be bound with the provider's nameuseQualifiedAliases- flags that the function aliases should be bound with the provider's namedescription- a brief description of the providerfunctionNames- a list of function names provided
- All Implemented Interfaces:
Serializable
public record NaftahFunctionProvider(String name, boolean useQualifiedName, boolean useQualifiedAliases, String description, List<String> functionNames)
extends Record
implements Serializable
Represents a provider of Naftah functions.
This record contains metadata about a function provider, including its name, a description, and the list of function names it offers.
- Author:
- Chakib Daii
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thedescriptionrecord component.The field for thefunctionNamesrecord component.private final StringThe field for thenamerecord component.private static final longprivate final booleanThe field for theuseQualifiedAliasesrecord component.private final booleanThe field for theuseQualifiedNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNaftahFunctionProvider(String name, boolean useQualifiedName, boolean useQualifiedAliases, String description, List<String> functionNames) Creates an instance of aNaftahFunctionProviderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefunctionNamesrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static NaftahFunctionProviderof(String name, boolean useQualifiedName, boolean useQualifiedAliases, String description, String[] functionNames) Factory method to create aNaftahFunctionProviderinstance.toString()Returns a string representation of this record class.booleanReturns the value of theuseQualifiedAliasesrecord component.booleanReturns the value of theuseQualifiedNamerecord component.
-
Field Details
-
name
The field for thenamerecord component. -
useQualifiedName
private final boolean useQualifiedNameThe field for theuseQualifiedNamerecord component. -
useQualifiedAliases
private final boolean useQualifiedAliasesThe field for theuseQualifiedAliasesrecord component. -
description
The field for thedescriptionrecord component. -
functionNames
The field for thefunctionNamesrecord component. -
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
NaftahFunctionProvider
public NaftahFunctionProvider(String name, boolean useQualifiedName, boolean useQualifiedAliases, String description, List<String> functionNames) Creates an instance of aNaftahFunctionProviderrecord class.- Parameters:
name- the value for thenamerecord componentuseQualifiedName- the value for theuseQualifiedNamerecord componentuseQualifiedAliases- the value for theuseQualifiedAliasesrecord componentdescription- the value for thedescriptionrecord componentfunctionNames- the value for thefunctionNamesrecord component
-
-
Method Details
-
of
public static NaftahFunctionProvider of(String name, boolean useQualifiedName, boolean useQualifiedAliases, String description, String[] functionNames) Factory method to create aNaftahFunctionProviderinstance.- Parameters:
name- the provider's nameuseQualifiedName- flags that the function names should be bound with the provider's nameuseQualifiedAliases- flags that the function aliases should be bound with the provider's namedescription- a brief description of the providerfunctionNames- an array of function names provided- Returns:
- a new
NaftahFunctionProviderinstance
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
useQualifiedName
public boolean useQualifiedName()Returns the value of theuseQualifiedNamerecord component.- Returns:
- the value of the
useQualifiedNamerecord component
-
useQualifiedAliases
public boolean useQualifiedAliases()Returns the value of theuseQualifiedAliasesrecord component.- Returns:
- the value of the
useQualifiedAliasesrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
functionNames
Returns the value of thefunctionNamesrecord component.- Returns:
- the value of the
functionNamesrecord component
-