java.lang.Object
java.lang.Record
com.github.sormuras.bach.project.ProjectSpace
public record ProjectSpace(String name, List<ProjectSpace> parents, int release, DeclaredModules modules)
extends Record
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionProjectSpace
(String name, List<ProjectSpace> parents, int release, DeclaredModules modules) Creates an instance of aProjectSpace
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.modules()
Returns the value of themodules
record component.name()
Returns the value of thename
record component.static ProjectSpace
of
(String name, ProjectSpace... parents) parents()
Returns the value of theparents
record component.int
release()
Returns the value of therelease
record component.final String
toString()
Returns a string representation of this record class.withModule
(DeclaredModule module) withModule
(String info) withModule
(String info, DeclaredModule.Operator operator) withModule
(String info, String main) withModule
(Path info) withModule
(Path info, DeclaredModule.Operator operator) withParents
(List<ProjectSpace> parents) withRelease
(int release)
-
Constructor Details
-
ProjectSpace
Creates an instance of aProjectSpace
record class.- Parameters:
name
- the value for thename
record componentparents
- the value for theparents
record componentrelease
- the value for therelease
record componentmodules
- the value for themodules
record component
-
-
Method Details
-
of
-
module
-
withParents
-
withRelease
-
withModule
-
withModule
-
withModule
-
withModule
-
withModule
-
withModule
-
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 '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
parents
Returns the value of theparents
record component.- Returns:
- the value of the
parents
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
-