Package ch.so.agi.mcp.service
Record Class XtfService.GenerateExampleResult
java.lang.Object
java.lang.Record
ch.so.agi.mcp.service.XtfService.GenerateExampleResult
- Enclosing class:
XtfService
public static record XtfService.GenerateExampleResult(boolean generated, @Nullable String xtfText, List<Map<String,Object>> messages, int basketCount, int objectCount, List<Map<String,Object>> objectsByClass, List<Map<String,Object>> skippedClasses, XtfService.ExampleValidation validation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionGenerateExampleResult(boolean generated, @Nullable String xtfText, List<Map<String, Object>> messages, int basketCount, int objectCount, List<Map<String, Object>> objectsByClass, List<Map<String, Object>> skippedClasses) GenerateExampleResult(boolean generated, @Nullable String xtfText, List<Map<String, Object>> messages, int basketCount, int objectCount, List<Map<String, Object>> objectsByClass, List<Map<String, Object>> skippedClasses, XtfService.ExampleValidation validation) Creates an instance of aGenerateExampleResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebasketCountrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegeneratedrecord component.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.intReturns the value of theobjectCountrecord component.Returns the value of theobjectsByClassrecord component.Returns the value of theskippedClassesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidationrecord component.@Nullable StringxtfText()Returns the value of thextfTextrecord component.
-
Constructor Details
-
GenerateExampleResult
-
GenerateExampleResult
public GenerateExampleResult(boolean generated, @Nullable String xtfText, List<Map<String, Object>> messages, int basketCount, int objectCount, List<Map<String, Object>> objectsByClass, List<Map<String, Object>> skippedClasses, XtfService.ExampleValidation validation) Creates an instance of aGenerateExampleResultrecord class.- Parameters:
generated- the value for thegeneratedrecord componentxtfText- the value for thextfTextrecord componentmessages- the value for themessagesrecord componentbasketCount- the value for thebasketCountrecord componentobjectCount- the value for theobjectCountrecord componentobjectsByClass- the value for theobjectsByClassrecord componentskippedClasses- the value for theskippedClassesrecord componentvalidation- the value for thevalidationrecord 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 '=='. -
generated
public boolean generated()Returns the value of thegeneratedrecord component.- Returns:
- the value of the
generatedrecord component
-
xtfText
Returns the value of thextfTextrecord component.- Returns:
- the value of the
xtfTextrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
basketCount
public int basketCount()Returns the value of thebasketCountrecord component.- Returns:
- the value of the
basketCountrecord component
-
objectCount
public int objectCount()Returns the value of theobjectCountrecord component.- Returns:
- the value of the
objectCountrecord component
-
objectsByClass
Returns the value of theobjectsByClassrecord component.- Returns:
- the value of the
objectsByClassrecord component
-
skippedClasses
Returns the value of theskippedClassesrecord component.- Returns:
- the value of the
skippedClassesrecord component
-
validation
Returns the value of thevalidationrecord component.- Returns:
- the value of the
validationrecord component
-