Package sk.iway.iwcm.rag.service
Record Class MarkdownSourceService.DirectoryNode
java.lang.Object
java.lang.Record
sk.iway.iwcm.rag.service.MarkdownSourceService.DirectoryNode
- Record Components:
root- normalized configured rootdirectory- root-relative directory pathname- directory display namechildren- whether eligible child directories exist
- Enclosing class:
- MarkdownSourceService
public static record MarkdownSourceService.DirectoryNode(String root, String directory, String name, boolean children)
extends Record
Describes one directory node in the lazy-loaded Markdown folder selector.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectoryNode(String root, String directory, String name, boolean children) Creates an instance of aDirectoryNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanchildren()Returns the value of thechildrenrecord component.Returns the value of thedirectoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.root()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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 '=='. -
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
directory
Returns the value of thedirectoryrecord component.- Returns:
- the value of the
directoryrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
children
public boolean children()Returns the value of thechildrenrecord component.- Returns:
- the value of the
childrenrecord component
-