Record Class ComponentScanner.ClassDirectory
java.lang.Object
java.lang.Record
com.ultikits.ultitools.context.ComponentScanner.ClassDirectory
- Enclosing class:
ComponentScanner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassLoaderThe field for theloaderrecord component.private final PathThe field for therootrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateClassDirectory(Path root, ClassLoader loader) Creates an instance of aClassDirectoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.loader()Returns the value of theloaderrecord component.root()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
root
The field for therootrecord component. -
loader
The field for theloaderrecord component.
-
-
Constructor Details
-
ClassDirectory
Creates an instance of aClassDirectoryrecord class.- Parameters:
root- the value for therootrecord componentloader- the value for theloaderrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
loader
Returns the value of theloaderrecord component.- Returns:
- the value of the
loaderrecord component
-