java.lang.Object
java.lang.Record
com.github.sormuras.bach.simple.SimpleSpace
- All Implemented Interfaces:
SimpleBuilder
public record SimpleSpace(Bach bach, Optional<String> name, Optional<Integer> release, List<SimpleModule> modules, ModuleSourcePathPatternsOption moduleSourcePaths, ModulePathsOption modulePaths)
extends Record
implements SimpleBuilder
A simplified module source space configuration and builder class.
-
Constructor Summary
ConstructorDescriptionSimpleSpace
(Bach bach) SimpleSpace
(Bach bach, Optional<String> name, Optional<Integer> release, List<SimpleModule> modules, ModuleSourcePathPatternsOption moduleSourcePaths, ModulePathsOption modulePaths) Creates an instance of aSimpleSpace
record class. -
Method Summary
Modifier and TypeMethodDescriptionbach()
Returns the value of thebach
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of themodulePaths
record component.modules()
Returns the value of themodules
record component.Returns the value of themoduleSourcePaths
record component.name()
Returns the value of thename
record component.static SimpleSpace
static SimpleSpace
release()
Returns the value of therelease
record component.space()
final String
toString()
Returns a string representation of this record class.withModule
(String name) withModule
(String name, UnaryOperator<SimpleModule> operator) withModulePaths
(Path... paths) withModules
(List<SimpleModule> modules) withModuleSourcePaths
(String... patterns) withRelease
(Integer release) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.sormuras.bach.simple.SimpleBuilder
compile, compile, compile, document, grab, link, newDependentSpace, outputDirectoryForClasses, outputDirectoryForModules, outputDirectoryForReports, runAllTests, runJUnit, runJUnit, runJUnit, runModule, runModule, runTool, runTool
-
Constructor Details
-
SimpleSpace
-
SimpleSpace
public SimpleSpace(Bach bach, Optional<String> name, Optional<Integer> release, List<SimpleModule> modules, ModuleSourcePathPatternsOption moduleSourcePaths, ModulePathsOption modulePaths) Creates an instance of aSimpleSpace
record class.- Parameters:
bach
- the value for thebach
record componentname
- the value for thename
record componentrelease
- the value for therelease
record componentmodules
- the value for themodules
record componentmoduleSourcePaths
- the value for themoduleSourcePaths
record componentmodulePaths
- the value for themodulePaths
record component
-
-
Method Details
-
of
-
of
-
bach
Returns the value of thebach
record component.- Specified by:
bach
in interfaceSimpleBuilder
- Returns:
- the value of the
bach
record component
-
space
- Specified by:
space
in interfaceSimpleBuilder
-
withName
-
withRelease
-
withModules
-
withModule
-
withModule
-
withModuleSourcePaths
-
withModulePaths
-
toModuleNames
-
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)
. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
release
Returns the value of therelease
record component.- Returns:
- the value of the
release
record component
-
modules
Returns the value of themodules
record component.- Returns:
- the value of the
modules
record component
-
moduleSourcePaths
Returns the value of themoduleSourcePaths
record component.- Returns:
- the value of the
moduleSourcePaths
record component
-
modulePaths
Returns the value of themodulePaths
record component.- Returns:
- the value of the
modulePaths
record component
-