Package io.jmix.aitools.tool.impl
Record Class AiToolRegistryImpl.ToolCandidate
java.lang.Object
java.lang.Record
io.jmix.aitools.tool.impl.AiToolRegistryImpl.ToolCandidate
- Record Components:
source- the tool bean declaring the methodmethod- the@Tool-annotated methoddescriptor- the resolved name and descriptionoverrideName- the@ToolOverridetarget name, ornullfor a regular tool
- Enclosing class:
AiToolRegistryImpl
protected static record AiToolRegistryImpl.ToolCandidate(JmixAiTool source, Method method, AiToolDescriptor descriptor, @Nullable String overrideName)
extends Record
Internal candidate gathered during registry build, before override resolution.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedToolCandidate(JmixAiTool source, Method method, AiToolDescriptor descriptor, @Nullable String overrideName) Creates an instance of aToolCandidaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.@Nullable StringReturns the value of theoverrideNamerecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ToolCandidate
protected ToolCandidate(JmixAiTool source, Method method, AiToolDescriptor descriptor, @Nullable String overrideName) Creates an instance of aToolCandidaterecord class.- Parameters:
source- the value for thesourcerecord componentmethod- the value for themethodrecord componentdescriptor- the value for thedescriptorrecord componentoverrideName- the value for theoverrideNamerecord 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). -
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
overrideName
Returns the value of theoverrideNamerecord component.- Returns:
- the value of the
overrideNamerecord component
-