Record Class ProjectDiscoveryDTO
java.lang.Object
java.lang.Record
callofproject.dev.project.dto.discovery.ProjectDiscoveryDTO
public record ProjectDiscoveryDTO(UUID projectId, String projectImagePath, String projectTitle, String projectSummary, String projectOwnerName, LocalDate applicationDeadline)
extends Record
ProjectOverviewDTO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationDeadline
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 theprojectId
record component.Returns the value of theprojectImagePath
record component.Returns the value of theprojectOwnerName
record component.Returns the value of theprojectSummary
record component.Returns the value of theprojectTitle
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ProjectDiscoveryDTO
public ProjectDiscoveryDTO(UUID projectId, String projectImagePath, String projectTitle, String projectSummary, String projectOwnerName, LocalDate applicationDeadline) Creates an instance of aProjectDiscoveryDTO
record class.- Parameters:
projectId
- the value for theprojectId
record componentprojectImagePath
- the value for theprojectImagePath
record componentprojectTitle
- the value for theprojectTitle
record componentprojectSummary
- the value for theprojectSummary
record componentprojectOwnerName
- the value for theprojectOwnerName
record componentapplicationDeadline
- the value for theapplicationDeadline
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)
. -
projectId
Returns the value of theprojectId
record component.- Returns:
- the value of the
projectId
record component
-
projectImagePath
Returns the value of theprojectImagePath
record component.- Returns:
- the value of the
projectImagePath
record component
-
projectTitle
Returns the value of theprojectTitle
record component.- Returns:
- the value of the
projectTitle
record component
-
projectSummary
Returns the value of theprojectSummary
record component.- Returns:
- the value of the
projectSummary
record component
-
projectOwnerName
Returns the value of theprojectOwnerName
record component.- Returns:
- the value of the
projectOwnerName
record component
-
applicationDeadline
Returns the value of theapplicationDeadline
record component.- Returns:
- the value of the
applicationDeadline
record component
-