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 theapplicationDeadlinerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprojectIdrecord component.Returns the value of theprojectImagePathrecord component.Returns the value of theprojectOwnerNamerecord component.Returns the value of theprojectSummaryrecord component.Returns the value of theprojectTitlerecord component.final StringtoString()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 aProjectDiscoveryDTOrecord class.- Parameters:
projectId- the value for theprojectIdrecord componentprojectImagePath- the value for theprojectImagePathrecord componentprojectTitle- the value for theprojectTitlerecord componentprojectSummary- the value for theprojectSummaryrecord componentprojectOwnerName- the value for theprojectOwnerNamerecord componentapplicationDeadline- the value for theapplicationDeadlinerecord 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 theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
projectImagePath
Returns the value of theprojectImagePathrecord component.- Returns:
- the value of the
projectImagePathrecord component
-
projectTitle
Returns the value of theprojectTitlerecord component.- Returns:
- the value of the
projectTitlerecord component
-
projectSummary
Returns the value of theprojectSummaryrecord component.- Returns:
- the value of the
projectSummaryrecord component
-
projectOwnerName
Returns the value of theprojectOwnerNamerecord component.- Returns:
- the value of the
projectOwnerNamerecord component
-
applicationDeadline
Returns the value of theapplicationDeadlinerecord component.- Returns:
- the value of the
applicationDeadlinerecord component
-