Record Class ProjectTemplateDTO
java.lang.Object
java.lang.Record
ch.admin.bit.jeap.initializer.api.model.ProjectTemplateDTO
public record ProjectTemplateDTO(String key, String name, String description, List<TemplateParameter> templateParameters, List<TemplateModuleDTO> modules)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionProjectTemplateDTO(String key, String name, String description, List<TemplateParameter> templateParameters, List<TemplateModuleDTO> modules) Creates an instance of aProjectTemplateDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.static ProjectTemplateDTOfrom(ProjectTemplate projectTemplate) final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.modules()Returns the value of themodulesrecord component.name()Returns the value of thenamerecord component.Returns the value of thetemplateParametersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProjectTemplateDTO
public ProjectTemplateDTO(String key, String name, String description, List<TemplateParameter> templateParameters, List<TemplateModuleDTO> modules) Creates an instance of aProjectTemplateDTOrecord class.- Parameters:
key- the value for thekeyrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttemplateParameters- the value for thetemplateParametersrecord componentmodules- the value for themodulesrecord component
-
-
Method Details
-
from
-
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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
templateParameters
Returns the value of thetemplateParametersrecord component.- Returns:
- the value of the
templateParametersrecord component
-
modules
Returns the value of themodulesrecord component.- Returns:
- the value of the
modulesrecord component
-