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 themunchanged- sources whose files did not changefailed- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchanged()Returns the value of thechangedrecord component.final booleanIndicates whether some other object is "equal to" this one.failed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of theunchangedrecord component.
-
Constructor Details
-
SyncResult
Copies each list.
-
-
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). -
changed
Returns the value of thechangedrecord component.- Returns:
- the value of the
changedrecord component
-
unchanged
Returns the value of theunchangedrecord component.- Returns:
- the value of the
unchangedrecord component
-
failed
Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-