java.lang.Object
java.lang.Record
com.github.sormuras.bach.Configuration.Pathing
- Enclosing class:
- Configuration
public static record Configuration.Pathing(Path root, Path externalModules, Path externalToolLayers, Path externalToolPrograms, Path workspace, Path javaExecutable)
extends Record
Path-related settings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalModulesrecord component.Returns the value of theexternalToolLayersrecord component.Returns the value of theexternalToolProgramsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thejavaExecutablerecord component.static Configuration.Pathingstatic Configuration.Pathingroot()Returns the value of therootrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkspacerecord component.
-
Constructor Details
-
Pathing
public Pathing(Path root, Path externalModules, Path externalToolLayers, Path externalToolPrograms, Path workspace, Path javaExecutable) Creates an instance of aPathingrecord class.- Parameters:
root- the value for therootrecord componentexternalModules- the value for theexternalModulesrecord componentexternalToolLayers- the value for theexternalToolLayersrecord componentexternalToolPrograms- the value for theexternalToolProgramsrecord componentworkspace- the value for theworkspacerecord componentjavaExecutable- the value for thejavaExecutablerecord component
-
-
Method Details
-
of
-
ofCurrentWorkingDirectory
-
root
-
workspace
-
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
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). -
root
Returns the value of therootrecord component.- Returns:
- the value of the
rootrecord component
-
externalModules
Returns the value of theexternalModulesrecord component.- Returns:
- the value of the
externalModulesrecord component
-
externalToolLayers
Returns the value of theexternalToolLayersrecord component.- Returns:
- the value of the
externalToolLayersrecord component
-
externalToolPrograms
Returns the value of theexternalToolProgramsrecord component.- Returns:
- the value of the
externalToolProgramsrecord component
-
workspace
Returns the value of theworkspacerecord component.- Returns:
- the value of the
workspacerecord component
-
javaExecutable
Returns the value of thejavaExecutablerecord component.- Returns:
- the value of the
javaExecutablerecord component
-