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 boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexternalModules
record component.Returns the value of theexternalToolLayers
record component.Returns the value of theexternalToolPrograms
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thejavaExecutable
record component.static Configuration.Pathing
static Configuration.Pathing
root()
Returns the value of theroot
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theworkspace
record component.
-
Constructor Details
-
Pathing
public Pathing(Path root, Path externalModules, Path externalToolLayers, Path externalToolPrograms, Path workspace, Path javaExecutable) Creates an instance of aPathing
record class.- Parameters:
root
- the value for theroot
record componentexternalModules
- the value for theexternalModules
record componentexternalToolLayers
- the value for theexternalToolLayers
record componentexternalToolPrograms
- the value for theexternalToolPrograms
record componentworkspace
- the value for theworkspace
record componentjavaExecutable
- the value for thejavaExecutable
record 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 theroot
record component.- Returns:
- the value of the
root
record component
-
externalModules
Returns the value of theexternalModules
record component.- Returns:
- the value of the
externalModules
record component
-
externalToolLayers
Returns the value of theexternalToolLayers
record component.- Returns:
- the value of the
externalToolLayers
record component
-
externalToolPrograms
Returns the value of theexternalToolPrograms
record component.- Returns:
- the value of the
externalToolPrograms
record component
-
workspace
Returns the value of theworkspace
record component.- Returns:
- the value of the
workspace
record component
-
javaExecutable
Returns the value of thejavaExecutable
record component.- Returns:
- the value of the
javaExecutable
record component
-