Record Class ExperienceDTO
java.lang.Object
java.lang.Record
callofproject.dev.authentication.dto.user_profile.ExperienceDTO
public record ExperienceDTO(UUID experienceId, String companyName, String description, String companyWebsiteLink, LocalDate startDate, LocalDate finishDate, boolean isContinue, String position)
extends Record
Data Transfer Object for an experience.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompanyNamerecord component.Returns the value of thecompanyWebsiteLinkrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperienceIdrecord component.Returns the value of thefinishDaterecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisContinuerecord component.position()Returns the value of thepositionrecord component.Returns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExperienceDTO
public ExperienceDTO(UUID experienceId, String companyName, String description, String companyWebsiteLink, LocalDate startDate, LocalDate finishDate, boolean isContinue, String position) Creates an instance of aExperienceDTOrecord class.- Parameters:
experienceId- the value for theexperienceIdrecord componentcompanyName- the value for thecompanyNamerecord componentdescription- the value for thedescriptionrecord componentcompanyWebsiteLink- the value for thecompanyWebsiteLinkrecord componentstartDate- the value for thestartDaterecord componentfinishDate- the value for thefinishDaterecord componentisContinue- the value for theisContinuerecord componentposition- the value for thepositionrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
experienceId
Returns the value of theexperienceIdrecord component.- Returns:
- the value of the
experienceIdrecord component
-
companyName
Returns the value of thecompanyNamerecord component.- Returns:
- the value of the
companyNamerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
companyWebsiteLink
Returns the value of thecompanyWebsiteLinkrecord component.- Returns:
- the value of the
companyWebsiteLinkrecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
finishDate
Returns the value of thefinishDaterecord component.- Returns:
- the value of the
finishDaterecord component
-
isContinue
public boolean isContinue()Returns the value of theisContinuerecord component.- Returns:
- the value of the
isContinuerecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-