Record Class ModuleSource
java.lang.Object
java.lang.Record
com.ultikits.ultitools.bootstrap.ModuleSource
@Internal
public record ModuleSource(PluginYmlReader.PluginYmlInfo descriptor, Path codeRoot)
extends Record
A module descriptor paired with its own JAR or compiled classes directory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PathThe field for thecodeRootrecord component.private final PluginYmlReader.PluginYmlInfoThe field for thedescriptorrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionModuleSource(PluginYmlReader.PluginYmlInfo descriptor, Path codeRoot) Creates an instance of aModuleSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncodeRoot()Returns the value of thecodeRootrecord component.Returns the value of thedescriptorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
descriptor
The field for thedescriptorrecord component. -
codeRoot
The field for thecodeRootrecord component.
-
-
Constructor Details
-
ModuleSource
Creates an instance of aModuleSourcerecord class.- Parameters:
descriptor- the value for thedescriptorrecord componentcodeRoot- the value for thecodeRootrecord 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). -
descriptor
Returns the value of thedescriptorrecord component.- Returns:
- the value of the
descriptorrecord component
-
codeRoot
Returns the value of thecodeRootrecord component.- Returns:
- the value of the
codeRootrecord component
-