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 Details

    • 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)
    • 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 a GenerateExampleResult record class.
      Parameters:
      generated - the value for the generated record component
      xtfText - the value for the xtfText record component
      messages - the value for the messages record component
      basketCount - the value for the basketCount record component
      objectCount - the value for the objectCount record component
      objectsByClass - the value for the objectsByClass record component
      skippedClasses - the value for the skippedClasses record component
      validation - the value for the validation record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • generated

      public boolean generated()
      Returns the value of the generated record component.
      Returns:
      the value of the generated record component
    • xtfText

      public @Nullable String xtfText()
      Returns the value of the xtfText record component.
      Returns:
      the value of the xtfText record component
    • messages

      public List<Map<String,Object>> messages()
      Returns the value of the messages record component.
      Returns:
      the value of the messages record component
    • basketCount

      public int basketCount()
      Returns the value of the basketCount record component.
      Returns:
      the value of the basketCount record component
    • objectCount

      public int objectCount()
      Returns the value of the objectCount record component.
      Returns:
      the value of the objectCount record component
    • objectsByClass

      public List<Map<String,Object>> objectsByClass()
      Returns the value of the objectsByClass record component.
      Returns:
      the value of the objectsByClass record component
    • skippedClasses

      public List<Map<String,Object>> skippedClasses()
      Returns the value of the skippedClasses record component.
      Returns:
      the value of the skippedClasses record component
    • validation

      public XtfService.ExampleValidation validation()
      Returns the value of the validation record component.
      Returns:
      the value of the validation record component