Record Class RoleRagBinding.SyncResult

java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.binding.RoleRagBinding.SyncResult
Record Components:
changed - sources whose files changed; the Role now reads them
unchanged - sources whose files did not change
failed - sources whose check failed or that did not load, which keep their previous content, and sources with a file that could not be read, which keeps its previous content while the other files are read
Enclosing class:
RoleRagBinding

public static record RoleRagBinding.SyncResult(List<String> changed, List<String> unchanged, List<String> failed) extends Record
What a RoleRagBinding.sync(java.lang.Class<?>) found, by source name, each list in name order. A source more than one binding holds is listed once: failed before changed before unchanged.
Since:
0.18.7
  • Constructor Details

  • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • changed

      public List<String> changed()
      Returns the value of the changed record component.
      Returns:
      the value of the changed record component
    • unchanged

      public List<String> unchanged()
      Returns the value of the unchanged record component.
      Returns:
      the value of the unchanged record component
    • failed

      public List<String> failed()
      Returns the value of the failed record component.
      Returns:
      the value of the failed record component