Record Class CreateNewProjectDto
java.lang.Object
java.lang.Record
com.winchesters.devopsify.dto.request.project.CreateNewProjectDto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuildSystem
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 theinitGitRepository
record component.JDK()
Returns the value of theJDK
record component.language()
Returns the value of thelanguage
record component.location()
Returns the value of thelocation
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CreateNewProjectDto
public CreateNewProjectDto(String name, String location, String language, String buildSystem, String JDK, Boolean initGitRepository) Creates an instance of aCreateNewProjectDto
record class.- Parameters:
name
- the value for thename
record componentlocation
- the value for thelocation
record componentlanguage
- the value for thelanguage
record componentbuildSystem
- the value for thebuildSystem
record componentJDK
- the value for theJDK
record componentinitGitRepository
- the value for theinitGitRepository
record component
-
-
Method Details
-
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
public final int 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
-
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
language
Returns the value of thelanguage
record component.- Returns:
- the value of the
language
record component
-
buildSystem
Returns the value of thebuildSystem
record component.- Returns:
- the value of the
buildSystem
record component
-
JDK
Returns the value of theJDK
record component.- Returns:
- the value of the
JDK
record component
-
initGitRepository
Returns the value of theinitGitRepository
record component.- Returns:
- the value of the
initGitRepository
record component
-