java.lang.Object
java.lang.Record
com.github.sormuras.bach.Configuration
public record Configuration(boolean verbose, boolean lenient, int timeout, Configuration.Pathing pathing, Configuration.Printing printing, Configuration.Tooling tooling, Options.ProjectOptions projectOptions)
extends Record
Global settings with nested topic-specific configurations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordPath-related settings.static final recordPrint-related settings and commonPrintWriterobjects.static final recordToolFinder-related andToolProvider-related settings. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(boolean verbose, boolean lenient, int timeout, Configuration.Pathing pathing, Configuration.Printing printing, Configuration.Tooling tooling, Options.ProjectOptions projectOptions) Creates an instance of aConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcomputeJarFileName(String module, ModuleDescriptor.Version version) static Pathfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanlenient()Returns the value of thelenientrecord component.static Configurationof()static Configurationof(Configuration.Pathing pathing, Configuration.Printing printing) pathing()Returns the value of thepathingrecord component.printing()Returns the value of theprintingrecord component.Returns the value of theprojectOptionsrecord component.inttimeout()Returns the value of thetimeoutrecord component.tooling()Returns the value of thetoolingrecord component.final StringtoString()Returns a string representation of this record class.booleanverbose()Returns the value of theverboserecord component.
-
Field Details
-
EXTERNAL_MODULES_DIRECTORY
- See Also:
-
EXTERNAL_TOOL_LAYERS_DIRECTORY
- See Also:
-
EXTERNAL_TOOL_PROGRAMS_DIRECTORY
- See Also:
-
EXTERNAL_TOOL_PROGRAM_ARGSFILE
- See Also:
-
LOGBOOK_ARCHIVE_FILE
- See Also:
-
LOGBOOK_MARKDOWN_FILE
- See Also:
-
TIMESTAMP_PATTERN
- See Also:
-
WORKSPACE_DIRECTORY
- See Also:
-
-
Constructor Details
-
Configuration
public Configuration(boolean verbose, boolean lenient, int timeout, Configuration.Pathing pathing, Configuration.Printing printing, Configuration.Tooling tooling, Options.ProjectOptions projectOptions) Creates an instance of aConfigurationrecord class.- Parameters:
verbose- the value for theverboserecord componentlenient- the value for thelenientrecord componenttimeout- the value for thetimeoutrecord componentpathing- the value for thepathingrecord componentprinting- the value for theprintingrecord componenttooling- the value for thetoolingrecord componentprojectOptions- the value for theprojectOptionsrecord component
-
-
Method Details
-
computeJavaExecutablePath
-
computeJarFileName
-
of
-
of
-
with
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
verbose
Returns the value of theverboserecord component.- Returns:
- the value of the
verboserecord component
-
lenient
Returns the value of thelenientrecord component.- Returns:
- the value of the
lenientrecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-
pathing
Returns the value of thepathingrecord component.- Returns:
- the value of the
pathingrecord component
-
printing
Returns the value of theprintingrecord component.- Returns:
- the value of the
printingrecord component
-
tooling
Returns the value of thetoolingrecord component.- Returns:
- the value of the
toolingrecord component
-
projectOptions
Returns the value of theprojectOptionsrecord component.- Returns:
- the value of the
projectOptionsrecord component
-